From e33736eacbcb216278df633d74717768ae1426bc Mon Sep 17 00:00:00 2001 From: naisila Date: Mon, 8 Jul 2024 22:58:42 +0200 Subject: [PATCH] makeStringConst defined in PG17 Relevant PG commit: de3600452b61d1bc3967e9e37e86db8956c8f577 https://github.com/postgres/postgres/commit/de3600452b61d1bc3967e9e37e86db8956c8f577 --- src/backend/distributed/commands/role.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/backend/distributed/commands/role.c b/src/backend/distributed/commands/role.c index 8d6350033..41cba74d0 100644 --- a/src/backend/distributed/commands/role.c +++ b/src/backend/distributed/commands/role.c @@ -74,7 +74,9 @@ static char * GetRoleNameFromDbRoleSetting(HeapTuple tuple, TupleDesc DbRoleSettingDescription); static char * GetDatabaseNameFromDbRoleSetting(HeapTuple tuple, TupleDesc DbRoleSettingDescription); +#if PG_VERSION_NUM < PG_VERSION_17 static Node * makeStringConst(char *str, int location); +#endif static Node * makeIntConst(int val, int location); static Node * makeFloatConst(char *str, int location); static const char * WrapQueryInAlterRoleIfExistsCall(const char *query, RoleSpec *role); @@ -1058,6 +1060,8 @@ PreprocessCreateRoleStmt(Node *node, const char *queryString, } +#if PG_VERSION_NUM < PG_VERSION_17 + /* * makeStringConst creates a Const Node that stores a given string * @@ -1081,6 +1085,9 @@ makeStringConst(char *str, int location) } +#endif + + /* * makeIntConst creates a Const Node that stores a given integer *