| От | Oren Teich |
|---|---|
| Тема | RE: [GENERAL] trigger problem? |
| Дата | |
| Msg-id | LDEIJMIHBGLDIEOIGPEHMEKHCBAA.teich@cobaltnet.com обсуждение исходный текст |
| Ответ на | trigger problem? ("Oren Teich" <teich@cobaltnet.com>) |
| Список | pgsql-general |
As a follow up to my last post, after some more testing, it appears that triggers for delete or insert work as expected, i.e. if multiple triggers on the same table are defined they each get called on a insert or delete. For updates however, only the first trigger defined on a relation seems to get called. I defined 6 triggers - 3 "AFTER INSERT OR DELETE" and 3 "AFTER UPDATE". All 3 triggers on the insert and delete are getting called - the data apperars and disappears as expected in the tables. On an update, however, all the data is gone except for data populated by the first trigger defined. Short of rewriting my SQL to delete/insert instead of update, is there anything I can do? thanks, Oren Teich
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера