]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Fix brown paper bag bug in bbe08b8869bd29d587f24ef18eb45c7d4d14afca.
authorRobert Haas <rhaas@postgresql.org>
Fri, 29 Jul 2022 20:31:57 +0000 (16:31 -0400)
committerRobert Haas <rhaas@postgresql.org>
Fri, 29 Jul 2022 20:32:07 +0000 (16:32 -0400)
commit5c9ea19b79d0a65f1fb21e87995ae32e1b10de8a
tree6027c1f14879ebc20d943c63bcf5bb714acddb3a
parente6e804aa2726e720971393d7f598cea3c924e7f7
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