Transaction callback
| От | Thomas Hallgren |
|---|---|
| Тема | Transaction callback |
| Дата | |
| Msg-id | bvglqt$20u7$1@news.hub.org обсуждение |
| Ответы |
Re: Transaction callback
|
| Список | pgsql-hackers |
I would like to register a "transaction callback" in the backend. Don't think it's possible today and my question is, how hard would it be to implement something that would enable this registration? Ideally, I'd like a "beforeCompletion" that is executed prior to the start of the commit process and a "afterCompletion" that is called when the transaction is commited. The latter would have a status flag indicating if status is "prepared" (to support 2-phase commits), "commited", or "rolled back". A related issue is the ability to register a callback that is executed when the connection is first established. Is that possible today? If so, how do I register the function to be called? Regards, Thomas Hallgren
В списке pgsql-hackers по дате отправления: