Re: autonomous transactions
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Simon Riggs <simon@2ndquadrant.com>
Cc: Neil Conway <neilc@samurai.com>, Pavel Stehule <pavel.stehule@gmail.com>, Alvaro Herrera <alvherre@commandprompt.com>, "Roberts, Jon" <Jon.Roberts@asurion.com>, "pgsql-hackers@postgresql.org" <pgsql-hackers@postgresql.org>
Date: 2008-01-23T22:50:02Z
Lists: pgsql-hackers
Simon Riggs <simon@2ndquadrant.com> writes: >> From looking at how Oracle does them, autonomous transactions are >> completely independent of the transaction that originates them -- they >> take a new database snapshot. This means that uncommitted changes in the >> originating transaction are not visible to the autonomous transaction. > Oh! Recursion depth would need to be tested for as well. Nasty. Seems like the cloning-a-session idea would be a possible implementation path for these too. regards, tom lane