Fix cross-version upgrade tests.
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 11 Nov 2024 18:57:21 +0000 (13:57 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 11 Nov 2024 18:57:41 +0000 (13:57 -0500)
commit256e34653aadd3582b98411d7d26f4fbb865e0ec
treee4d50f9f16ae1916e6a70572daf9a1763cd492c6
parentc1fff7b1b311057fb0f8e78e7fca4efa80d48707
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/GNUmakefile
src/pl/plperl/input/plperl_env.source
src/pl/plperl/output/plperl_env.source