[GENERAL] atomic commit;begin for long running transactions , in combination with savepoint.

2007-10-13 Thread syan tan
I was wondering whether there could be an atomic commit;begin command for postgresql, in order to open up a transaction at the beginning of a unit of work in a client session, so that client applications don't have to duplicate work with having optimistic locking and version id fields in their tabl

Re: [GENERAL] atomic commit;begin for long running transactions , in combination with savepoint.

2007-10-14 Thread Syan Tan
t 14 1:56 , "Trevor Talbot" sent: >On 10/13/07, syan tan > wrote: >> I was wondering whether there could be an atomic commit;begin command >> for postgresql, in order to open up a transaction at the beginning of >> a unit of work in a client session, so that cl

Re: [GENERAL] atomic commit;begin for long running transactions , in combination with savepoint.

2007-10-15 Thread Syan Tan
On Sun Oct 14 7:41 , "Trevor Talbot" sent: >On 10/14/07, Syan Tan wrote: >> I meant commit and continue current transaction. The transaction is opened >> on the user application caching composite data from many tables regarding >> a root object. Because alm

Re: [GENERAL] atomic commit;begin for long running transactions , in combination with savepoint.

2007-10-15 Thread Syan Tan
; command, then you could avoid that extra work in clients - or maybe warping transactions for this purpose makes it more difficult to write transactions for the usual batch processing purposes. On Mon Oct 15 5:28 , "Trevor Talbot" sent: >On 10/15/07, Syan Tan wrote: > >&

Re: [GENERAL] atomic commit;begin for long running transactions , in combination with savepoint.

2007-10-15 Thread Syan Tan
On Mon Oct 15 5:28 , "Trevor Talbot" sent: >The only difference is in the data you _can_ read. For the >SERIALIZABLE isolation level, that data was decided at the beginning >of the transaction. A row that was updated by another transaction >will make the version that you can see effectively

Re: [GENERAL] atomic commit;begin for long running transactions , in combination with savepoint.

2007-10-17 Thread Syan Tan
n level in postgres. google found my reference, and the reference mentioned it was different from serializable. On Mon Oct 15 9:09 , "Trevor Talbot" sent: >On 10/15/07, Syan Tan wrote: > >> >Also keep in mind that MVCC is not the only way to implement >> >transa