forked from huawei/openGauss-server
fix Create/Drop Domain
This commit is contained in:
parent
77cf49a685
commit
fcc5cf2ede
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue