Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/backend/optimizer/plan/planner.c
Original file line number Diff line number Diff line change
Expand Up @@ -593,7 +593,7 @@ subquery_planner(PlannerGlobal *glob, Query *parse,
#ifdef XCP
/* XL currently does not support DML in subqueries. */
if ((parse->commandType != CMD_SELECT) &&
((parent_root ? parent_root->query_level + 1 : 1) > 1))
((parent_root ? parent_root->query_level + 1 : 1) > 1) && !IS_PGXC_DATANODE)
ereport(ERROR,
(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
errmsg("INSERT/UPDATE/DELETE is not supported in subquery")));
Expand Down
10 changes: 5 additions & 5 deletions src/include/pg_config_manual.h
Original file line number Diff line number Diff line change
Expand Up @@ -387,8 +387,8 @@


/* all code written by Tencent Team must be in macro __TBASE__ block*/
#define __TBASE__ 0
#define __SUPPORT_DISTRIBUTED_TRANSACTION__ 0
#define __TBASE__ 1
#define __SUPPORT_DISTRIBUTED_TRANSACTION__ 1
//#define __PAGE_TIMESTAMP_LOG__ 0
//#define __USE_GLOBAL_SNAPSHOT__ 0
#ifdef __SUPPORT_DISTRIBUTED_TRANSACTION__
Expand All @@ -404,11 +404,11 @@
#define _MLS_ 0
#define __AUDIT_FGA__
#define __STORAGE_SCALABLE__ 0
#define __XLOG__ 0
#define __COLD_HOT__ 0
#define __XLOG__ 1
#define __COLD_HOT__ 1
#define __SUBSCRIPTION__ 0
#define _PUB_SUB_RELIABLE_ 0
#define __TWO_PHASE_TRANS__ 0
#define __TWO_PHASE_TRANS__ 1
//#define __TWO_PHASE_TESTS__ 0
/* MAX NODES NUMBER of the cluster */
#define MAX_NODES_NUMBER 4096