pgsql: Fix pg_dump sorting of foreign key constraints

From: Álvaro Herrera <alvherre(at)kurilemu(dot)de>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Fix pg_dump sorting of foreign key constraints
Date: 2025-10-18 15:54:17
Message-ID: [email protected]
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Fix pg_dump sorting of foreign key constraints

Apparently, commit 04bc2c42f765 failed to notice that DO_FK_CONSTRAINT
objects require identical handling as DO_CONSTRAINT ones, which causes
some pg_upgrade tests in debug builds to fail spuriously. Add that.

Author: Álvaro Herrera <alvherre(at)kurilemu(dot)de>
Backpatch-through: 13
Discussion: https://postgr.es/m/[email protected]

Branch
------
REL_14_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/6062c3db3093d92d6240b88c6818d0e7aaa73341

Modified Files
--------------
src/bin/pg_dump/pg_dump_sort.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Álvaro Herrera 2025-10-18 16:19:22 pgsql: Fix determination of not-null constraint "locality" for inherite
Previous Message David Rowley 2025-10-18 03:07:57 pgsql: Fix reset of incorrect hash iterator in GROUPING SETS queries