pgsql: Fix cross-version upgrade tests for commits 0497318e4 et al.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Fix cross-version upgrade tests for commits 0497318e4 et al.
Date: 2026-10-20 22:49:53
Message-ID: E1xJIeX-000000004Ku-0qaA@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Fix cross-version upgrade tests for commits 0497318e4 et al.

Dumps taken from unpatched versions (pre-v14) will not have the AS
keyword that ruleutils.c now prints, causing a harmless diff in dump
output. Adjust the cross-version upgrade's old dump to make it match.

While I'm here, move the stanza that I hastily put in a non-optimal
place in commit f8ab6c622. It's worth fixing because it messed up
the logical structure of adjust_database_contents, making it
un-obvious where to put future additions.

Per buildfarm.

Branch
------
REL_17_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/80da124a4f338a612550180dac86eb33850e2254

Modified Files
--------------
src/test/perl/PostgreSQL/Test/AdjustUpgrade.pm | 46 +++++++++++++++-----------
1 file changed, 27 insertions(+), 19 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message David Rowley 2026-10-21 00:33:00 pgsql: Use Size rather than int for storing strnlen's return
Previous Message Tom Lane 2026-10-20 21:32:46 pgsql: Fix OLD/NEW aliases that EXPLAIN prints in RETURNING SubPlans.