mirror of
https://github.com/postgres/postgres.git
synced 2025-05-17 06:41:24 +03:00
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
This commit is contained in:
parent
c335264c9e
commit
64df887009
@ -51,3 +51,5 @@ $$
|
|||||||
$$ LANGUAGE plperl;
|
$$ LANGUAGE plperl;
|
||||||
WARNING: attempted alteration of $ENV{TEST_PLPERL_ENV_FOO} at line 12.
|
WARNING: attempted alteration of $ENV{TEST_PLPERL_ENV_FOO} at line 12.
|
||||||
NOTICE: environ unaffected
|
NOTICE: environ unaffected
|
||||||
|
-- clean up to simplify cross-version upgrade testing
|
||||||
|
DROP FUNCTION get_environ();
|
||||||
|
@ -56,3 +56,6 @@ $$
|
|||||||
}
|
}
|
||||||
|
|
||||||
$$ LANGUAGE plperl;
|
$$ LANGUAGE plperl;
|
||||||
|
|
||||||
|
-- clean up to simplify cross-version upgrade testing
|
||||||
|
DROP FUNCTION get_environ();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user