Update src/backend/distributed/commands/utility_hook.c

Co-authored-by: Onur Tirtir <onurcantirtir@gmail.com>
pull/7404/head
Gürkan İndibay 2024-01-29 16:33:27 +03:00 committed by GitHub
parent 9632798dc5
commit 42864d7069
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 6 deletions

View File

@ -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 }
};