This is an automated email from the ASF dual-hosted git repository. tuhaihe pushed a commit to branch REL_2_STABLE in repository https://gitbox.apache.org/repos/asf/cloudberry.git
commit 34732054483ee1ead93c0484ccb04e3bc45ea6d8 Author: Tom Lane <[email protected]> AuthorDate: Mon Nov 11 13:57:21 2024 -0500 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 | 1 + src/pl/plperl/input/plperl_env.source | 3 +++ src/pl/plperl/output/plperl_env.source | 2 ++ 3 files changed, 6 insertions(+) diff --git a/src/pl/plperl/GNUmakefile b/src/pl/plperl/GNUmakefile index aff976572e5..671ac7b7bb7 100644 --- a/src/pl/plperl/GNUmakefile +++ b/src/pl/plperl/GNUmakefile @@ -130,6 +130,7 @@ submake: clean distclean maintainer-clean: clean-lib rm -f SPI.c Util.c $(OBJS) perlchunks.h plperl_opmask.h + rm -f sql/plperl_env.sql expected/plperl_env.out rm -rf $(pg_regress_clean_files) ifeq ($(PORTNAME), win32) rm -f $(perlwithver).def diff --git a/src/pl/plperl/input/plperl_env.source b/src/pl/plperl/input/plperl_env.source index 8fe526e1b8b..49f03acb1dc 100644 --- a/src/pl/plperl/input/plperl_env.source +++ b/src/pl/plperl/input/plperl_env.source @@ -50,3 +50,6 @@ $$ } $$ LANGUAGE plperl; + +-- clean up to simplify cross-version upgrade testing +DROP FUNCTION get_environ(); diff --git a/src/pl/plperl/output/plperl_env.source b/src/pl/plperl/output/plperl_env.source index 37b7e23d5ce..ef75d5d5556 100644 --- a/src/pl/plperl/output/plperl_env.source +++ b/src/pl/plperl/output/plperl_env.source @@ -47,3 +47,5 @@ $$ $$ LANGUAGE plperl; WARNING: attempted alteration of $ENV{TEST_PLPERL_ENV_FOO} at line 12. NOTICE: environ unaffected +-- clean up to simplify cross-version upgrade testing +DROP FUNCTION get_environ(); --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
