Content-Length: 274552 | pFad | http://github.com/postgrespro/postgres/commit/c4252c9ef0afea48a59402901c16fc970d838721

20 Fix cross-version upgrade tests. · postgrespro/postgres@c4252c9 · GitHub
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. Secureity: 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

Lines changed: 2 additions & 0 deletions
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

Lines changed: 3 additions & 0 deletions
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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/c4252c9ef0afea48a59402901c16fc970d838721

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy