Re: Foreign key constraint delete fire order - Mailing list pgsql-general

From Tom Lane
Subject Re: Foreign key constraint delete fire order
Date
Msg-id 16370.1159543478@sss.pgh.pa.us
Whole thread Raw
In response to Foreign key constraint delete fire order  ("CN" <cnliou9@fastmail.fm>)
List pgsql-general
"CN" <cnliou9@fastmail.fm> writes:
> I wish foreign key constraint trigger guarantees that rows in
> referensing table are deleted before the rows in referenced table is
> deleted.
> ...
> Does my wish make sense or violate any standard?

Sorry, the SQL standard says that it happens in the current order (rows
deleted as a consequence of RI actions are to be dropped at the *end* of
the SQL-statement).

            regards, tom lane

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: 8.1.4 compile problem
Next
From: Andrew Sullivan
Date:
Subject: Re: benchmark suite