| От | Sim Zacks |
|---|---|
| Тема | Re: Invoke trigger after commit |
| Дата | |
| Msg-id | f1v10b$16nj$1@news.hub.org обсуждение |
| Ответ на | Invoke trigger after commit (Jan Strube <js@deriva.de>) |
| Список | pgsql-general |
Use a Listen/Notify daemon application and put the Notify on the last line of the transaction. If it does the notify that means that the transaction was completed successfully. Sim Jan Strube wrote: > Hi, > > is there a way to invoke a trigger only if the current transaction is > committed? > The problem is that my trigger does some kind of logging outside the > database and therefore must not be invoked if the transaction is rolled > back. > > Thanks in advance > Jan > > ---------------------------(end of broadcast)--------------------------- > TIP 1: if posting/reading through Usenet, please send an appropriate > subscribe-nomail command to majordomo@postgresql.org so that your > message can get through to the mailing list cleanly >
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера