]> git.ipfire.org Git - thirdparty/postgresql.git/commitdiff
Adjust AdjustUpgrade.pm for commit b1720fe63.
authorTom Lane <tgl@sss.pgh.pa.us>
Wed, 9 Apr 2025 00:21:03 +0000 (20:21 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 9 Apr 2025 00:21:03 +0000 (20:21 -0400)
Need to delete the functions we no longer have available from
the dumps to be reloaded from old versions.

Per buildfarm.

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

index c451aea3ac9116673e24ad7dae7dd9e196c99274..609275e2c26d837bafacc4a3f36902ef4987fe01 100644 (file)
@@ -112,6 +112,16 @@ sub adjust_database_contents
                        'drop extension if exists test_ext7');
        }
 
+       # we removed these test-support functions in v18
+       if ($old_version < 18)
+       {
+               _add_st($result, 'regression', 'drop function ttdummy()');
+               _add_st($result, 'regression', 'drop function set_ttdummy(integer)');
+               _add_st($result, 'regression', 'drop function autoinc()');
+               _add_st($result, 'regression', 'drop function check_foreign_key()');
+               _add_st($result, 'regression', 'drop function check_primary_key()');
+       }
+
        # we removed this test-support function in v17
        if ($old_version >= 15 && $old_version < 17)
        {