Skip to content

Commit

Permalink
Adds PostgreSQL 16.0 Support (#7201)
Browse files Browse the repository at this point in the history
This commit concludes PG16.0 Support in Citus.

The main PG16 support work has been done for 16beta3
#6952
There was some extra work needed for 16rc1
#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:
postgres/postgres@8dfa37b
8dfa37b797843a83a5756ea3309055e8953e1a86

Sister PR
citusdata/the-process#150

(cherry picked from commit 4e46708)
  • Loading branch information
naisila committed Sep 15, 2023
1 parent 1b4d7a5 commit 9b6ffec
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ orbs:
parameters:
image_suffix:
type: string
default: '-v641cdcd'
default: '-v87fd773'
pg14_version:
type: string
default: '14.9'
Expand All @@ -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'
Expand Down
2 changes: 2 additions & 0 deletions src/include/pg_version_compat.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 9b6ffec

Please sign in to comment.