From 9b6ffece5ea043056e4d13532c75bf04bc657792 Mon Sep 17 00:00:00 2001 From: Naisila Puka <37271756+naisila@users.noreply.github.com> Date: Fri, 15 Sep 2023 12:23:04 +0300 Subject: [PATCH] Adds PostgreSQL 16.0 Support (#7201) This commit concludes PG16.0 Support in Citus. The main PG16 support work has been done for 16beta3 https://github.com/citusdata/citus/pull/6952 There was some extra work needed for 16rc1 https://github.com/citusdata/citus/pull/7173 And this PR yet introduces some extra work needed to 16.0 :) `pgstat_fetch_stat_local_beentry` has been renamed to `pgstat_get_local_beentry_by_index` in PG16.0 Relevant PG commit: https://github.com/postgres/postgres/commit/8dfa37b797843a83a5756ea3309055e8953e1a86 8dfa37b797843a83a5756ea3309055e8953e1a86 Sister PR https://github.com/citusdata/the-process/pull/150 (cherry picked from commit 4e46708789478d6deccd3d121f2b4da7f631ebe3) --- .circleci/config.yml | 6 +++--- src/include/pg_version_compat.h | 2 ++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index a1c0f1553b6..8addafcccaa 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -6,7 +6,7 @@ orbs: parameters: image_suffix: type: string - default: '-v641cdcd' + default: '-v87fd773' pg14_version: type: string default: '14.9' @@ -15,10 +15,10 @@ parameters: default: '15.4' pg16_version: type: string - default: '16rc1' + default: '16.0' upgrade_pg_versions: type: string - default: '14.9-15.4-16rc1' + default: '14.9-15.4-16.0' style_checker_tools_version: type: string default: '0.8.18' diff --git a/src/include/pg_version_compat.h b/src/include/pg_version_compat.h index 2b0320003e9..1bdbae58016 100644 --- a/src/include/pg_version_compat.h +++ b/src/include/pg_version_compat.h @@ -46,6 +46,8 @@ get_guc_variables_compat(int *gucCount) #define object_ownercheck(a, b, c) object_ownercheck(a, b, c) #define object_aclcheck(a, b, c, d) object_aclcheck(a, b, c, d) +#define pgstat_fetch_stat_local_beentry(a) pgstat_get_local_beentry_by_index(a) + #else #include "catalog/pg_class_d.h"