Fix cross-version upgrade tests.
commit0bd9560d964abc09e446e4c5e264bb7a0886e5ea
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:41 +0000 (11 13:57 -0500)
tree58b3ed9ad63ded704da713f99fa2b587088bad28
parent9f97c31c26a9704a6b2b92778a6e0b1d3606ff5d
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