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

Commit 2baf093

Browse files
committed
Prohibit creating/dropping database under multimaster
1 parent bc90f85 commit 2baf093

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

contrib/mmts/multimaster.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4933,6 +4933,11 @@ static void MtmProcessUtility(Node *parsetree, const char *queryString,
49334933
skipCommand = true;
49344934
break;
49354935

4936+
case T_CreatedbStmt:
4937+
case T_DropdbStmt:
4938+
elog(ERROR, "Multimaster doesn't support creating and dropping databases");
4939+
break;
4940+
49364941
case T_CreateTableSpaceStmt:
49374942
case T_DropTableSpaceStmt:
49384943
{

0 commit comments

Comments
 (0)