Fix pg_dump sorting of foreign key constraints

Álvaro Herrera <alvherre@kurilemu.de>

Commit: 6062c3db3093d92d6240b88c6818d0e7aaa73341
Author: Álvaro Herrera <alvherre@kurilemu.de>
Date: 2025-10-18T15:50:10Z
Releases: 14.20
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