Fix cross-version upgrade tests.

Tom Lane <tgl@sss.pgh.pa.us>

Commit: c834b375a6dc36ff92f9f738ef1d7af09d91165f
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2024-11-11T18:57:41Z
Releases: 15.9
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

Files

PathChange+/−
src/pl/plperl/expected/plperl_env.out modified +2 −0
src/pl/plperl/sql/plperl_env.sql modified +3 −0