Re: foreign key on delete cascade order? - Mailing list pgsql-general

From Tom Lane
Subject Re: foreign key on delete cascade order?
Date
Msg-id 649664.1646927803@sss.pgh.pa.us
Whole thread Raw
In response to foreign key on delete cascade order?  (George Woodring <george.woodring@iglass.net>)
Responses Re: foreign key on delete cascade order?
List pgsql-general
George Woodring <george.woodring@iglass.net> writes:
> When using FOREIGN KEY ON DELETE CASCADE, is there an order the entries are
> being deleted?

No, there's no particular attempt to order the deletions.  Each cascaded
delete ought to be removing a disjoint set of rows in the referencing
table, so I'm not quite sure why order should matter.

            regards, tom lane



pgsql-general by date:

Previous
From: George Woodring
Date:
Subject: foreign key on delete cascade order?
Next
From: Peter Juhasz
Date:
Subject: [pgpool] invalid read kind