diff options
Diffstat (limited to 'src/backend/tcop/postgres.c')
-rw-r--r-- | src/backend/tcop/postgres.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/backend/tcop/postgres.c b/src/backend/tcop/postgres.c index 137bc4fe33..43d37f927c 100644 --- a/src/backend/tcop/postgres.c +++ b/src/backend/tcop/postgres.c @@ -1205,8 +1205,9 @@ exec_simple_query(const char *query_string) #ifdef PGXC /* PGXC_DATANODE */ - /* Force getting Xid from GTM if not autovacuum, but a vacuum */ - if (IS_PGXC_DATANODE && IsA(parsetree, VacuumStmt) && IsPostmasterEnvironment) + /* Force getting Xid from GTM for vacuum and cluster. */ + if (IS_PGXC_DATANODE && IsPostmasterEnvironment && + (IsA(parsetree, VacuumStmt) || IsA(parsetree, ClusterStmt))) SetForceXidFromGTM(true); #endif |