]> granicus.if.org Git - postgresql/commit
Sort the dependent objects before deletion in DROP OWNED BY.
authorTom Lane <tgl@sss.pgh.pa.us>
Wed, 20 Mar 2019 22:06:29 +0000 (18:06 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 20 Mar 2019 22:06:29 +0000 (18:06 -0400)
commit8aa9dd74b36757342b6208fbfebb5b35c2d67c53
tree0ee9b9aef47d5dfb750d91180424f60916a59047
parenta6da0047158b8a227f883aeed19eb7fcfbef11fb
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
src/backend/catalog/dependency.c
src/backend/catalog/pg_shdepend.c
src/include/catalog/dependency.h