]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Adjust cross-version upgrade tests for seg_out() fix
authorAndrew Dunstan <andrew@dunslane.net>
Fri, 12 Jun 2026 22:05:25 +0000 (18:05 -0400)
committerAndrew Dunstan <andrew@dunslane.net>
Fri, 12 Jun 2026 22:07:00 +0000 (18:07 -0400)
commit7974f94a02a1b39d7c84737ced41890386aaae67
tree2aea2f0cce259be7e6a2c6f9bbcda3d260c462ea
parentb31fa1f87f373d8d2fdc43a489ef5611de7a2af7
Adjust cross-version upgrade tests for seg_out() fix

Commit 0e1f1ed157e taught seg_out() to print the certainty indicator
on an interval's upper boundary, but it was back-patched only as far
as v14.  When upgrading from an older release, the old server prints
the one test_seg row exercising that case ('4.6 .. ~7.0') without the
indicator, so the pre- and post-upgrade dumps do not match.  Make
AdjustUpgrade.pm delete just that row; seg's comparison function does
distinguish the certainty indicators, so the otherwise identical row
'4.6 .. 7.0' is unaffected.

Back-patch to all supported branches.

Per buildfarm members crake and fairywren.

Discussion: https://postgr.es/m/5ccbdbde-6467-4a10-bf4d-0be73a05ce8d@dunslane.net
src/test/perl/PostgreSQL/Test/AdjustUpgrade.pm