pgsql: Fix brown paper bag bug in bbe08b8869bd29d587f24ef18eb45c7d4d14a

From: Robert Haas <rhaas(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Fix brown paper bag bug in bbe08b8869bd29d587f24ef18eb45c7d4d14a
Date: 2022-07-29 21:13:10
Message-ID: E1oHXID-001pgl-Rb@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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.

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/43746996399541ecb5c7b188725a5f097c15ceae

Modified Files
--------------
src/bin/pg_dump/pg_dump.c | 18 ++++++-------
src/bin/pg_upgrade/t/002_pg_upgrade.pl | 46 ++++++++++++++++++++++++++++++++++
2 files changed, 55 insertions(+), 9 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Andrew Dunstan 2022-07-29 21:54:43 pgsql: Fix new recovery test for log_error_verbosity=verbose case
Previous Message Tom Lane 2022-07-29 19:38:58 pgsql: Support pg_read_[binary_]file (filename, missing_ok).