summaryrefslogtreecommitdiff
path: root/src/pl/plperl/input/plperl_env.source
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2024-11-11 13:57:21 -0500
committerTom Lane <tgl@sss.pgh.pa.us>2024-11-11 13:57:41 -0500
commit256e34653aadd3582b98411d7d26f4fbb865e0ec (patch)
treee4d50f9f16ae1916e6a70572daf9a1763cd492c6 /src/pl/plperl/input/plperl_env.source
parentc1fff7b1b311057fb0f8e78e7fca4efa80d48707 (diff)
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 b7e3a52a8 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
Diffstat (limited to 'src/pl/plperl/input/plperl_env.source')
-rw-r--r--src/pl/plperl/input/plperl_env.source3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/pl/plperl/input/plperl_env.source b/src/pl/plperl/input/plperl_env.source
index 8fe526e1b8b..49f03acb1dc 100644
--- a/src/pl/plperl/input/plperl_env.source
+++ b/src/pl/plperl/input/plperl_env.source
@@ -50,3 +50,6 @@ $$
}
$$ LANGUAGE plperl;
+
+-- clean up to simplify cross-version upgrade testing
+DROP FUNCTION get_environ();