Fix brown paper bag bug in bbe08b8869bd29d587f24ef18eb45c7d4d14afca.
authorRobert Haas <[email protected]>
Fri, 29 Jul 2022 20:31:57 +0000 (16:31 -0400)
committerRobert Haas <[email protected]>
Fri, 29 Jul 2022 20:31:57 +0000 (16:31 -0400)
commit43746996399541ecb5c7b188725a5f097c15ceae
tree0b96ad9cdc726ab253b98331fa33b914dbd669a1
parent283129e325b721a5a62227f20d7e3d149b379c73
Fix brown paper bag bug in bbe08b8869bd29d587f24ef18eb45c7d4d14afca.

We must issue the TRUNCATE command first and update relfrozenxid
and relminmxid afterward; otherwise, TRUNCATE overwrites the
previously-set values.

Add a test case like I should have done the first time.

Per buildfarm report from TestUpgradeXversion.pm, by way of Tom
Lane.
src/bin/pg_dump/pg_dump.c
src/bin/pg_upgrade/t/002_pg_upgrade.pl