From: Tom Lane Date: Wed, 28 Feb 2024 22:47:25 +0000 (-0500) Subject: Fix cross-version upgrade tests after f0827b443. X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=e8aecc5c2ce1d3b2b1b01bd770c14f5214c2a369;p=users%2Fc2main%2Fpostgres.git Fix cross-version upgrade tests after f0827b443. Removing the get_columns_length() function from regress.so means we have to drop it when testing upgrades from versions that had it. Per buildfarm. Discussion: https://postgr.es/m/2520881.1709159002@sss.pgh.pa.us --- diff --git a/src/test/perl/PostgreSQL/Test/AdjustUpgrade.pm b/src/test/perl/PostgreSQL/Test/AdjustUpgrade.pm index a6222ae14c..c0da0aaff8 100644 --- a/src/test/perl/PostgreSQL/Test/AdjustUpgrade.pm +++ b/src/test/perl/PostgreSQL/Test/AdjustUpgrade.pm @@ -106,6 +106,13 @@ sub adjust_database_contents 'drop extension if exists test_ext7'); } + # we removed this test-support function in v17 + if ($old_version >= 15 && $old_version < 17) + { + _add_st($result, 'regression', + 'drop function get_columns_length(oid[])'); + } + # stuff not supported from release 16 if ($old_version >= 12 && $old_version < 16) {