From: Stephan Szabo <sszabo@megazone23.bigpanda.com>
To: cnliou@eurosport.com
Cc: pgsql-sql@postgresql.org
Subject: Re: Foreign Key Constraint Deletion Order
Date: Sun, 18 Nov 2001 18:01:20 -0800 (PST)
Message-ID: <20011118175857.C40879-100000@megazone23.bigpanda.com> (raw)
In-Reply-To: <200111190030.197e@lh00.opsion.fr>
On Mon, 19 Nov 2001 cnliou@eurosport.com wrote:
> I have found from a small number of tests that
> deletions executed by foreign key constraint does NOT
> guarantee the detail table to be deleted BEFORE
> master table. This makes some of my trigger functions
> assocated with the detail table mulfunction because
> the trigger function can't find its parent record.
The detail table rows are currently deleted at
end of statement or end of transaction (based on
deferrability). Technically the time is indeterminate
in regards to user triggers on the master table.
We've been having discussions on hackers about the behavior,
but it's unlikely that the rows will be deleted before
the master row.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: sszabo@megazone23.bigpanda.com, cnliou@eurosport.com
Subject: Re: Foreign Key Constraint Deletion Order
In-Reply-To: <20011118175857.C40879-100000@megazone23.bigpanda.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox