RE: [GENERAL] trigger problem?

Поиск
Список
Период
Сортировка
От 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 по дате отправления:

Предыдущее
От: ^chewie
Дата:
Сообщение: Re: [GENERAL] Re: MySQL / PostgreSQL (was: Postgres object orientation)
Следующее
От: Ron Chmara
Дата:
Сообщение: Re: [GENERAL] Re: MySQL / PostgreSQL (was: Postgres object orientation)