From 42864d706964419b57493ed07b0f11e556efc0c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=BCrkan=20=C4=B0ndibay?= Date: Mon, 29 Jan 2024 16:33:27 +0300 Subject: [PATCH] Update src/backend/distributed/commands/utility_hook.c Co-authored-by: Onur Tirtir --- src/backend/distributed/commands/utility_hook.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/backend/distributed/commands/utility_hook.c b/src/backend/distributed/commands/utility_hook.c index cd5eea9e4..39a0b996f 100644 --- a/src/backend/distributed/commands/utility_hook.c +++ b/src/backend/distributed/commands/utility_hook.c @@ -111,13 +111,10 @@ typedef struct NonMainDbDistributedStatementInfo } NonMainDbDistributedStatementInfo; /* - * twoPcSupportedStatements is a list of statements that are supported in 2PC. - * The list is used to determine whether a statement is supported in 2PC and - * whether it should be marked as distributed in 2PC. - * We use this array to avoid hardcoding the list of supported statements in - * multiple places. + * NonMainDbSupportedStatements is an array of statements that are supported + * from non-main databases. */ -const TwoPcStatementInfo twoPcSupportedStatements[] = { +static const NonMainDbDistributedStatementInfo NonMainDbSupportedStatements[] = { { T_GrantRoleStmt, false }, { T_CreateRoleStmt, true } };