From fcc5cf2ede6be2ac99b8c97ed9cc81ae546410e3 Mon Sep 17 00:00:00 2001 From: hemny Date: Tue, 4 Aug 2020 14:22:41 +0800 Subject: [PATCH] fix Create/Drop Domain --- src/gausskernel/process/tcop/utility.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/gausskernel/process/tcop/utility.cpp b/src/gausskernel/process/tcop/utility.cpp index 2b2943d1d..c3696f4f7 100644 --- a/src/gausskernel/process/tcop/utility.cpp +++ b/src/gausskernel/process/tcop/utility.cpp @@ -3586,6 +3586,9 @@ void standard_ProcessUtility(Node* parse_tree, const char* query_string, ParamLi } break; case T_AlterDomainStmt: +#ifdef ENABLE_MULTIPLE_NODES + ereport(ERROR, (errcode(ERRCODE_FEATURE_NOT_SUPPORTED), errmsg("domain is not yet supported."))); +#endif /* PGXC */ { AlterDomainStmt* stmt = (AlterDomainStmt*)parse_tree; @@ -4920,8 +4923,12 @@ void standard_ProcessUtility(Node* parse_tree, const char* query_string, ParamLi * ******************************** DOMAIN statements **** */ case T_CreateDomainStmt: +#ifdef ENABLE_MULTIPLE_NODES + if (!IsInitdb && !u_sess->attr.attr_common.IsInplaceUpgrade) + ereport(ERROR, (errcode(ERRCODE_FEATURE_NOT_SUPPORTED), errmsg("domain is not yet supported."))); +#endif /* PGXC */ DefineDomain((CreateDomainStmt*)parse_tree); -#ifdef PGXC +#ifdef ENABLE_MULTIPLE_NODES if (IS_PGXC_COORDINATOR) ExecUtilityStmtOnNodes(query_string, NULL, sent_to_remote, false, EXEC_ON_ALL_NODES, false); #endif