diff options
Diffstat (limited to 'src/backend/tcop/postgres.c')
-rw-r--r-- | src/backend/tcop/postgres.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/backend/tcop/postgres.c b/src/backend/tcop/postgres.c index b10e0e44d9..3cc070a34b 100644 --- a/src/backend/tcop/postgres.c +++ b/src/backend/tcop/postgres.c @@ -1251,11 +1251,11 @@ exec_simple_query(const char *query_string) */ if (IS_PGXC_DATANODE && IsPostmasterEnvironment) { - if (IsA(parsetree, VacuumStmt) || IsA(parsetree, ClusterStmt)) + if (IsA(parsetree->stmt, VacuumStmt) || IsA(parsetree->stmt, ClusterStmt)) SetForceXidFromGTM(true); - else if (IsA(parsetree, ReindexStmt)) + else if (IsA(parsetree->stmt, ReindexStmt)) { - ReindexStmt *stmt = (ReindexStmt *) parsetree; + ReindexStmt *stmt = (ReindexStmt *) parsetree->stmt; if (stmt->kind == REINDEX_OBJECT_SCHEMA || stmt->kind == REINDEX_OBJECT_DATABASE) SetForceXidFromGTM(true); |