Fix pg_dump sorting of foreign key constraints
authorÁlvaro Herrera <[email protected]>
Sat, 18 Oct 2025 15:50:10 +0000 (17:50 +0200)
committerÁlvaro Herrera <[email protected]>
Sat, 18 Oct 2025 15:50:10 +0000 (17:50 +0200)
commit162e70ea06eb31dfe8f75bf508afde323eb0b077
treef87ffa7a72db7b9bc8c3e1670b3b9216ef644125
parent0b6a02f0355c8950ffe22b52eac86f6261e19caf
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 <[email protected]>
Backpatch-through: 13
Discussion: https://postgr.es/m/202510181201[email protected]
src/bin/pg_dump/pg_dump_sort.c