Re: Foreign key trigger timing bug? - Mailing list pgsql-hackers

From Jan Wieck
Subject Re: Foreign key trigger timing bug?
Date
Msg-id 439863FD.2030604@Yahoo.com
Whole thread Raw
In response to Re: Foreign key trigger timing bug?  (Stephan Szabo <sszabo@megazone.bigpanda.com>)
Responses Re: Foreign key trigger timing bug?  (Stephan Szabo <sszabo@megazone.bigpanda.com>)
List pgsql-hackers
On 12/7/2005 4:50 PM, Stephan Szabo wrote:

> On Wed, 7 Dec 2005, Bruce Momjian wrote:
> 
>> I had an open 8.1 item that was:
>>
>>     o  fix foreign trigger timing issue
>>
>> Would someone supply text for a TODO entry on this, as I don't think we
>> fixed it in 8.1.
> 
> I'd split this into two separate items now.
> 
>  Fix before delete triggers on cascaded deletes to run after the cascaded
> delete is done.  This is odd, but seems to be what the spec requires.

Ugh, that sounds ugly. One problem I see is, what do we do if the BEFORE 
trigger then returns NULL (to skip the delete). The cascaded operations 
are already done. Do we have to execute the cascaded deletes in a 
subtransaction or do we disallow the skip in this case?


Jan

-- 
#======================================================================#
# It's easier to get forgiveness for being wrong than for being right. #
# Let's break this rule - forgive me.                                  #
#================================================== JanWieck@Yahoo.com #


pgsql-hackers by date:

Previous
From: Jan Wieck
Date:
Subject: Re: About my new work at Command Prompt Inc.
Next
From: "Merlin Moncure"
Date:
Subject: Re: forced to restart postgresql service yesterday