]> git.ipfire.org Git - thirdparty/postgresql.git/commitdiff
Fix cross-version upgrade tests after f0827b443.
authorTom Lane <tgl@sss.pgh.pa.us>
Wed, 28 Feb 2024 22:47:25 +0000 (17:47 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 28 Feb 2024 22:47:25 +0000 (17:47 -0500)
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

src/test/perl/PostgreSQL/Test/AdjustUpgrade.pm

index a6222ae14c2753c905330ec61bcb7f8591610027..c0da0aaff8aa90fcd7c1e35b4805e9fa17e2901c 100644 (file)
@@ -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)
        {