Re: [HACKERS] Nested Transactions, Abort All

2004-07-07 Thread Dennis Bjorklund
On Tue, 6 Jul 2004, Alvaro Herrera wrote: We can later implement savepoints, which will have SAVEPOINT foo and ROLLBACK TO foo as interface. (Note that a subtransaction is slightly different from a savepoint, so we can't use ROLLBACK TO foo in subtransactions because that has a different

Re: [HACKERS] ALTER xxx SET TABLESPACE (was bug in DROP TABLESPACE)

2004-07-07 Thread Christopher Kings-Lynne
Its questionable if these are to be interpreted as just changing the default tablespace for subsequent creates, or also moving all objects that were created using the previous tablespace. Since it's indistinguishable whether an object was created using the default from schema/database or given

[HACKERS] ALTER xxx SET TABLESPACE (was bug in DROP TABLESPACE)

2004-07-07 Thread Andreas Pflug
Christopher Kings-Lynne wrote: The other thing we need are these two commands: ALTER DATABASE foo SET TABLESPACE spc; ALTER SCHEMA foo SET TABLESPACE spc; I think these should not be considered new features but essential functionality left out of the original patch. Its questionable if these are

Re: [HACKERS] Nested Transaction TODO list

2004-07-07 Thread Honza Pazdziora
On Sat, Jul 03, 2004 at 11:03:33AM -0400, Tom Lane wrote: than begin/commit for subxacts? What about savepoints?) Also, what about exposing this functionality in plpgsql? Seems like we need some kind of exception handling syntax to make this useful. What does Oracle do? Oracle uses

Re: [HACKERS] Nested Transactions, Abort All

2004-07-07 Thread Oliver Jowett
Dennis Bjorklund wrote: On Tue, 6 Jul 2004, Alvaro Herrera wrote: We can later implement savepoints, which will have SAVEPOINT foo and ROLLBACK TO foo as interface. (Note that a subtransaction is slightly different from a savepoint, so we can't use ROLLBACK TO foo in subtransactions because that

Re: [HACKERS] ALTER xx SET TABLESPACE (was bug in DROP TABLESPACE)

2004-07-07 Thread Andreas Pflug
Christopher Kings-Lynne wrote: Its questionable if these are to be interpreted as just changing the default tablespace for subsequent creates, or also moving all objects that were created using the previous tablespace. Since it's indistinguishable whether an object was created using the default

Re: [HACKERS] nested-xacts cursors (was Re: Performance with new

2004-07-07 Thread Oliver Jowett
Tom Lane wrote: Alvaro Herrera [EMAIL PROTECTED] writes: Well, my opinion is that cursors and other resources should at least be usable from a inner subtransaction in its parent -- because if that can't be done we are wasting some of the benefits, because we can't just stick everything in a

Re: [HACKERS] Nested Transactions, Abort All

2004-07-07 Thread Dennis Bjorklund
On Wed, 7 Jul 2004, Oliver Jowett wrote: Savepoint ROLLBACK TO foo doesn't invalidate 'foo'. If SAVEPOINT foo is 'start new subtransaction foo', ROLLBACK TO foo must be 'roll back subtransaction foo and all children; start new subtransaction foo'. If that is all there is, I much rather see

Re: [HACKERS] Nested Transactions, Abort All

2004-07-07 Thread Dennis Bjorklund
On Wed, 7 Jul 2004, Oliver Jowett wrote: So how do you propose supporting simple rollback of a subtransaction? It seems like an extension regardless of how it's done. If I understand you correctly what you want is a ROLLBACK TO SAVEPOINT foo; followed by a RELEASE SAVEPOINT foo; -- /Dennis

Re: [HACKERS] Nested Transactions, Abort All

2004-07-07 Thread Oliver Jowett
Dennis Bjorklund wrote: On Wed, 7 Jul 2004, Oliver Jowett wrote: So how do you propose supporting simple rollback of a subtransaction? It seems like an extension regardless of how it's done. If I understand you correctly what you want is a ROLLBACK TO SAVEPOINT foo; followed by a RELEASE

Re: [HACKERS] Nested Transactions, Abort All

2004-07-07 Thread Dennis Bjorklund
On Wed, 7 Jul 2004, Oliver Jowett wrote: If I understand you correctly what you want is a ROLLBACK TO SAVEPOINT foo; followed by a RELEASE SAVEPOINT foo; Ugh.. nasty syntax and an extra empty transaction. If you translate it directly using only the primitives of the current

Re: [HACKERS] Postgresql on SAN

2004-07-07 Thread Bruce Momjian
Yannick Lecaillez wrote: Thanks a lot for all people which answer. I have this clustering on SAN problem today and i think it could be less harder to implement this today than it was for Oracle in 1993 (since i can find a lot of work in opensource which could be interesting in this project

Re: [HACKERS] Point in Time Recovery

2004-07-07 Thread Zeugswetter Andreas SB SD
Well, Tom does seem to have something with regard to StartUpIds. I feel it is easier to force a new timeline by adding a very large number to the LogId IF, and only if, we have performed an archive recovery. That way, we do not change at all the behaviour of the system for people that choose

Re: [HACKERS] plperl security

2004-07-07 Thread Andrew Dunstan
Tom Lane wrote: Recovering when you get an error is probably the trickiest part of this. OK, I have a setup that instead of refusing to load trusted functions if the Safe version is not up to date, forces them to error out by calling elog(ERROR...), thus: andrew=# select tval(); ERROR:

Re: [HACKERS] Nested Transactions, Abort All

2004-07-07 Thread Scott Marlowe
On Tue, 2004-07-06 at 23:36, Greg Stark wrote: Scott Marlowe [EMAIL PROTECTED] writes: Why not rollback all or commit all? I really really don't like subbegin and subcommit. I get the feeling they'll cause more problems we haven't foreseen yet, but I can't put my finger on it.

Re: [HACKERS] Nested Transactions, Abort All

2004-07-07 Thread Scott Marlowe
On Wed, 2004-07-07 at 00:16, Dennis Bjorklund wrote: On Tue, 6 Jul 2004, Alvaro Herrera wrote: We can later implement savepoints, which will have SAVEPOINT foo and ROLLBACK TO foo as interface. (Note that a subtransaction is slightly different from a savepoint, so we can't use ROLLBACK

Re: [HACKERS] Postgresql on SAN

2004-07-07 Thread Robert Treat
On Wed, 2004-07-07 at 06:39, Yannick Lecaillez wrote: I have this clustering on SAN problem today and snip Me thinks you've fallen into the trap of proprietary vendors. Your problem isn't that you need clustering on SAN, your problem is you want some form of high availability solution for your

[HACKERS] tsearch and win32 (again)

2004-07-07 Thread Darko Prenosil
Few days old snapshot produces an error when making tsearch2 module: dict_ispell.o(.text+0x31b):dict_ispell.c: undefined reference to `pg_strcasecmp' dict_ispell.o(.text+0x420):dict_ispell.c: undefined reference to `pg_strcasecmp' dict_ispell.o(.text+0x500):dict_ispell.c: undefined reference to

Re: [HACKERS] Nested Transactions, Abort All

2004-07-07 Thread Thomas Swan
Scott Marlowe wrote: On Tue, 2004-07-06 at 23:36, Greg Stark wrote: Scott Marlowe [EMAIL PROTECTED] writes: Why not rollback all or commit all? I really really don't like subbegin and subcommit. I get the feeling they'll cause more problems we haven't foreseen yet, but I can't put my

Re: [HACKERS] Loadable Oracle Personality: WAS LinuxTag wrapup

2004-07-07 Thread Simon Riggs
On Wed, 2004-07-07 at 02:04, Justin Clift wrote: Simon Riggs wrote: snip External tool is one thing, but the loadable personality seems like a very good idea and worth discussing further. Would an interesting, and maybe slightly different way of viewing a loadable personality, be as a

Re: [HACKERS] Point in Time Recovery

2004-07-07 Thread Simon Riggs
On Wed, 2004-07-07 at 14:17, Zeugswetter Andreas SB SD wrote: Well, Tom does seem to have something with regard to StartUpIds. I feel it is easier to force a new timeline by adding a very large number to the LogId IF, and only if, we have performed an archive recovery. That way, we do not