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:32:54 +03:00 committed by GitHub
parent 3533461712
commit 9632798dc5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 10 additions and 5 deletions

View File

@ -96,14 +96,19 @@
"SELECT citus_internal.mark_object_distributed(%d, %s, %d, %s)" "SELECT citus_internal.mark_object_distributed(%d, %s, %d, %s)"
/* /*
* TwoPcStatementInfo is used to determine whether a statement is supported in 2PC * NonMainDbDistributedStatementInfo is used to determine whether a statement is
* and whether it should be marked as distributed in 2PC. * supported from non-main databases and whether it should be marked as
* distributed explicitly (*).
*
* We always have to mark such the objects created "as distributed" but while for
* some object types we can delegate this to main database, for some others we have
* to explicitly send a command to all nodes in this code-path to achieve this.
*/ */
typedef struct TwoPcStatementInfo typedef struct NonMainDbDistributedStatementInfo
{ {
int statementType; int statementType;
bool markAsDistributed; bool explicitlyMarkAsDistributed;
} TwoPcStatementInfo; } NonMainDbDistributedStatementInfo;
/* /*
* twoPcSupportedStatements is a list of statements that are supported in 2PC. * twoPcSupportedStatements is a list of statements that are supported in 2PC.