Re: FW: BUG in trigger and foreign keys - Mailing list pgsql-general

From Tom Lane
Subject Re: FW: BUG in trigger and foreign keys
Date
Msg-id 19862.1040744319@sss.pgh.pa.us
Whole thread Raw
In response to FW: BUG in trigger and foreign keys  ("Jefim Matskin" <JefimM@sphera.com>)
List 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 by date:

Previous
From: Tom Lane
Date:
Subject: Re: creating languages in the pg_catalog schema?
Next
From: "Jefim Matskin"
Date:
Subject: Re: FW: BUG in trigger and foreign keys