Re: FW: BUG in trigger and foreign keys

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Jefim Matskin" <JefimM(at)sphera(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: FW: BUG in trigger and foreign keys
Date: 2002-12-24 15:38:39
Message-ID: 19862.1040744319@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"Jefim Matskin" <JefimM(at)sphera(dot)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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Jefim Matskin 2002-12-24 15:58:54 Re: FW: BUG in trigger and foreign keys
Previous Message Tom Lane 2002-12-24 15:26:38 Re: creating languages in the pg_catalog schema?