This is an automated email from the ASF dual-hosted git repository. reshke pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/cloudberry.git
commit 45804f88431f568c5b023efc150c1a3b8d60a862 Author: Kevin Yeap <[email protected]> AuthorDate: Wed Mar 13 11:11:01 2024 -0700 pg_upgrade: version guard checks that use 6X support functions As part of 6 > 7 upgrade we check for views using objects that have been removed in GPDB7. To prevent our 7 > 7 CI tests from failing, version guard the upgrade checks using pg_upgrade support functions that only exist on 6X. --- src/bin/pg_upgrade/greenplum/check_gp.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/bin/pg_upgrade/greenplum/check_gp.c b/src/bin/pg_upgrade/greenplum/check_gp.c index 6e6d009700..afa6e8294a 100644 --- a/src/bin/pg_upgrade/greenplum/check_gp.c +++ b/src/bin/pg_upgrade/greenplum/check_gp.c @@ -830,6 +830,9 @@ teardown_GPDB6_data_type_checks(ClusterInfo *cluster) static void check_views_with_removed_operators() { + if (GET_MAJOR_VERSION(old_cluster.major_version) > 904) + return; + char output_path[MAXPGPATH]; FILE *script = NULL; bool found = false; @@ -912,6 +915,9 @@ check_views_with_removed_operators() static void check_views_with_removed_functions() { + if (GET_MAJOR_VERSION(old_cluster.major_version) > 904) + return; + char output_path[MAXPGPATH]; FILE *script = NULL; bool found = false; --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
