Fix pg_dump to assign domain array type OIDs during pg_upgrade.
authorTom Lane <tgl@sss.pgh.pa.us>
Sat, 30 Sep 2017 21:05:07 +0000 (17:05 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Sat, 30 Sep 2017 21:05:07 +0000 (17:05 -0400)
commit2632bcce5e767a2b5901bbef54ae52df061eee72
tree38d89b21af289b1e154c8b58092843123d4c0e5a
parentc12d570fa147d0ec273df53de3a2802925d551ba
Fix pg_dump to assign domain array type OIDs during pg_upgrade.

During a binary upgrade, all type OIDs are supposed to be assigned by
pg_dump based on their values in the old cluster.  But now that domains
have arrays, there's nothing to base the arrays' type OIDs on, if we're
upgrading from a pre-v11 cluster.  Make pg_dump search for an unused type
OID to use for this purpose.  Per buildfarm.

Discussion: https://postgr.es/m/E1dyLlE-0002gT-H5@gemulon.postgresql.org
src/bin/pg_dump/pg_dump.c