Re: autonomous transactions
От | Andres Freund |
---|---|
Тема | Re: autonomous transactions |
Дата | |
Msg-id | 20160901183849.swue2x2ov6qgyyvt@alap3.anarazel.de обсуждение исходный текст |
Ответ на | Re: autonomous transactions (Joel Jacobson <joel@trustly.com>) |
Ответы |
Re: autonomous transactions
|
Список | pgsql-hackers |
On 2016-08-31 06:10:31 +0200, Joel Jacobson wrote: > This is important if you as a caller function want to be sure none of > the work made by anything called down the stack gets committed. > That is, if you as a caller decide to rollback, e.g. by raising an > exception, and you want to be sure *everything* gets rollbacked, > including all work by functions you've called. > If the caller can't control this, then the author of the caller > function would need to inspect the source code of all function being > called, to be sure there are no code using autonomous transactions. I'm not convinced this makes much sense. All FDWs, dblink etc. already allow you do stuff outside of a transaction. Andres
В списке pgsql-hackers по дате отправления: