Fix cross-version upgrade tests.
commit8d19f3fea003b1f744516b84cbdb0097ae7b2912
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 11 Nov 2024 18:57:21 +0000 (11 13:57 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 11 Nov 2024 18:57:21 +0000 (11 13:57 -0500)
treef11d22d96b8d11a0aa58b2fcdb03e787260a8d45
parent4cd4f3b97492c1b38115d0563a2e55b136eb542a
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
src/pl/plperl/expected/plperl_env.out
src/pl/plperl/sql/plperl_env.sql