| От | Matt Miller |
|---|---|
| Тема | Autonomous Transactions |
| Дата | |
| Msg-id | 1117640281.4206.8.camel@dbamm01-linux обсуждение исходный текст |
| Ответы |
Re: Autonomous Transactions
|
| Список | pgsql-general |
I'm looking for a way to enable a function to commit a unit of work that does not affect the caller's transaction. I'm coming from the Oracle world where I've used the "autonomous_transaction" pragma of PL/SQL to do this. I'm new to Postgres, but I'm hopeful that I can move our systems from Oracle. I realize that a plpgsql function cannot commit, and that a rollback happens automatically when an exception is raised. Beyond this, I'm not seeing what transaction management tools I have within a function. Maybe there is a standard idiom out there that employs nested function calls or something. I'm willing to use a different language, or even the libpq API if necessary.
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера