Fix pg_dump sorting of foreign key constraints
authorÁlvaro Herrera <alvherre@kurilemu.de>
Sat, 18 Oct 2025 15:50:10 +0000 (17:50 +0200)
committerÁlvaro Herrera <alvherre@kurilemu.de>
Sat, 18 Oct 2025 15:50:10 +0000 (17:50 +0200)
commit4cc3b4445913d962087deccdc0cdec4910bcbfca
treefb893f20e69fe761dc3ebbf6fa6dbafdbeedd07e
parent6c03ae8d6e810b7273c8d3828e864a79d13a37d5
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
src/bin/pg_dump/pg_dump_sort.c