Skip to content

Commit c4252c9

Browse files
committed
Fix cross-version upgrade tests.
TestUpgradeXversion knows how to make the main regression database's references to pg_regress.so be version-independent. But it doesn't do that for plperl's database, so that the C function added by commit b7e3a52 is causing cross-version upgrade test failures. Path of least resistance is to just drop the function at the end of the new test. In <= v14, also take the opportunity to clean up the generated test files. Security: CVE-2024-10979
1 parent a34c33f commit c4252c9

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

src/pl/plperl/expected/plperl_env.out

+2
Original file line numberDiff line numberDiff line change
@@ -51,3 +51,5 @@ $$
5151
$$ LANGUAGE plperl;
5252
WARNING: attempted alteration of $ENV{TEST_PLPERL_ENV_FOO} at line 12.
5353
NOTICE: environ unaffected
54+
-- clean up to simplify cross-version upgrade testing
55+
DROP FUNCTION get_environ();

src/pl/plperl/sql/plperl_env.sql

+3
Original file line numberDiff line numberDiff line change
@@ -56,3 +56,6 @@ $$
5656
}
5757

5858
$$ LANGUAGE plperl;
59+
60+
-- clean up to simplify cross-version upgrade testing
61+
DROP FUNCTION get_environ();

0 commit comments

Comments
 (0)