Re: FW: BUG in trigger and foreign keys

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: FW: BUG in trigger and foreign keys
Дата
Msg-id 19862.1040744319@sss.pgh.pa.us
обсуждение исходный текст
Ответ на FW: BUG in trigger and foreign keys  ("Jefim Matskin" <JefimM@sphera.com>)
Список pgsql-general
"Jefim Matskin" <JefimM@sphera.com> writes:
> Following sample demonstrates incorrect behavior of the trigger.
> The problem happens only when the table that has  the trigger also has foreign key constraints.

What makes you think this is a bug?  It looks to me like you simply
haven't thought about the interaction between your AFTER DELETE trigger
and the triggers that implement the foreign-key behavior (in particular,
the ON UPDATE CASCADE and ON DELETE CASCADE clauses).

            regards, tom lane

В списке pgsql-general по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: creating languages in the pg_catalog schema?
Следующее
От: "Jefim Matskin"
Дата:
Сообщение: Re: FW: BUG in trigger and foreign keys