Fix pg_dump sorting of foreign key constraints

Álvaro Herrera <alvherre@kurilemu.de>

Commit: 4cc3b4445913d962087deccdc0cdec4910bcbfca
Author: Álvaro Herrera <alvherre@kurilemu.de>
Date: 2025-10-18T15:50:10Z
Releases: 15.15
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@kurilemu.de>
Backpatch-through: 13
Discussion: https://postgr.es/m/202510181201.k6y75v2tpf5r@alvherre.pgsql

Files

PathChange+/−
src/bin/pg_dump/pg_dump_sort.c modified +2 −1

Discussion