From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Sort the dependent objects before deletion in DROP OWNED BY.
Date: Wed, 20 Mar 2019 22:06:39 +0000
Message-ID: <E1h6jM7-0007Z4-2Z@gemulon.postgresql.org> (raw)
Sort the dependent objects before deletion in DROP OWNED BY.
This finishes a task we left undone in commit f1ad067fc, by extending
the delete-in-descending-OID-order rule to deletions triggered by
DROP OWNED BY. We've coped with machine-dependent deletion orders
one time too many, and the new issues caused by Peter G's recent
nbtree hacking seem like the last straw.
Discussion: https://postgr.es/m/E1h6eep-0001Mw-Vd@gemulon.postgresql.org
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/8aa9dd74b36757342b6208fbfebb5b35c2d67c53
Modified Files
--------------
src/backend/catalog/dependency.c | 17 +++++++++++++++++
src/backend/catalog/pg_shdepend.c | 8 ++++++++
src/include/catalog/dependency.h | 2 ++
3 files changed, 27 insertions(+)
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: tgl@sss.pgh.pa.us
Subject: Re: pgsql: Sort the dependent objects before deletion in DROP OWNED BY.
In-Reply-To: <E1h6jM7-0007Z4-2Z@gemulon.postgresql.org>
References: <E1h6jM7-0007Z4-2Z@gemulon.postgresql.org>
* 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