From f16d5e18333886bc2c0fefa732cf792e442fa9dd Mon Sep 17 00:00:00 2001 From: Halil Ozan Akgul Date: Thu, 19 Aug 2021 19:01:26 +0300 Subject: [PATCH] Introduces make_simple_restrictinfo_compat and pull_varnos_compat macros make_simple_restrictinfo and pull_varnos functions now have a new parameter These new macros give us the ability to use this new parameter for PG14 and they don't give the parameter for previous versions Relevant PG commit: 55dc86eca70b1dc18a79c141b3567efed910329d --- src/include/distributed/version_compat.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/include/distributed/version_compat.h b/src/include/distributed/version_compat.h index fba6cfe99..8d5e8d663 100644 --- a/src/include/distributed/version_compat.h +++ b/src/include/distributed/version_compat.h @@ -60,6 +60,8 @@ #define pgproc_statusflags_compat(pgproc) ((pgproc)->statusFlags) #define get_partition_parent_compat(a, b) get_partition_parent(a, b) #define RelationGetPartitionDesc_compat(a, b) RelationGetPartitionDesc(a, b) +#define make_simple_restrictinfo_compat(a, b) make_simple_restrictinfo(a, b) +#define pull_varnos_compat(a, b) pull_varnos(a, b) #else #define AlterTableStmtObjType(a) ((a)->relkind) #define F_NEXTVAL_COMPAT F_NEXTVAL_OID @@ -94,6 +96,8 @@ #define get_partition_parent_compat(a, b) get_partition_parent(a) #define RelationGetPartitionDesc_compat(a, b) RelationGetPartitionDesc(a) #define PQ_LARGE_MESSAGE_LIMIT 0 +#define make_simple_restrictinfo_compat(a, b) make_simple_restrictinfo(b) +#define pull_varnos_compat(a, b) pull_varnos(b) #endif #if PG_VERSION_NUM >= PG_VERSION_13