Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 88d8fd8

Browse files
knizhnikkelvich
authored andcommitted
Prohibit creating/dropping database under multimaster
1 parent b042dae commit 88d8fd8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

multimaster.c

+5
Original file line numberDiff line numberDiff line change
@@ -4915,6 +4915,11 @@ static void MtmProcessUtility(Node *parsetree, const char *queryString,
49154915
skipCommand = true;
49164916
break;
49174917

4918+
case T_CreatedbStmt:
4919+
case T_DropdbStmt:
4920+
elog(ERROR, "Multimaster doesn't support creating and dropping databases");
4921+
break;
4922+
49184923
case T_CreateTableSpaceStmt:
49194924
case T_DropTableSpaceStmt:
49204925
{

0 commit comments

Comments
 (0)