From: Tom Lane <tgl@sss.pgh.pa.us>
To: cnliou@eurosport.com
Cc: pgsql-sql@postgresql.org
Subject: Re: Foreign Key Constraint Deletion Order
Date: Mon, 19 Nov 2001 23:11:31 -0500
Message-ID: <27655.1006229491@sss.pgh.pa.us> (raw)
In-Reply-To: <200111200350.0341@lh00.opsion.fr>
References: <200111200350.0341@lh00.opsion.fr>
<cnliou@eurosport.com> writes:
> Am I asking for too much, or RI and triggers were not
> designed for operations like this example in the
> first place?
The problem is that RI is implemented by triggers, and there's
no guarantees about the firing order of multiple triggers.
So you don't know whether your custom triggers will fire
before or after the RI actions occur.
We've had some discussions in the past about arranging things
so that trigger firing order could be predicted/controlled.
But nothing's been done about it yet. Search the archives
if you want to see the prior discussions.
regards, tom lane
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: tgl@sss.pgh.pa.us, cnliou@eurosport.com
Subject: Re: Foreign Key Constraint Deletion Order
In-Reply-To: <27655.1006229491@sss.pgh.pa.us>
* 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