mirror of https://github.com/citusdata/citus.git
Adds alter database stmt from non-main db
parent
8afa2d0386
commit
2ca4d3eba7
|
@ -213,6 +213,8 @@ static const NonMainDbDistributedStatementInfo NonMainDbSupportedStatements[] =
|
||||||
{ T_AlterRoleStmt, NO_DIST_OBJECT_OPERATION, NULL },
|
{ T_AlterRoleStmt, NO_DIST_OBJECT_OPERATION, NULL },
|
||||||
{ T_GrantStmt, NO_DIST_OBJECT_OPERATION, NonMainDbCheckSupportedObjectTypeForGrant },
|
{ T_GrantStmt, NO_DIST_OBJECT_OPERATION, NonMainDbCheckSupportedObjectTypeForGrant },
|
||||||
{ T_CreatedbStmt, NO_DIST_OBJECT_OPERATION, NULL },
|
{ T_CreatedbStmt, NO_DIST_OBJECT_OPERATION, NULL },
|
||||||
|
{ T_AlterDatabaseStmt, NO_DIST_OBJECT_OPERATION, NULL },
|
||||||
|
{ T_AlterDatabaseSetStmt, NO_DIST_OBJECT_OPERATION, NULL },
|
||||||
{ T_DropdbStmt, NO_DIST_OBJECT_OPERATION, NULL },
|
{ T_DropdbStmt, NO_DIST_OBJECT_OPERATION, NULL },
|
||||||
{ T_SecLabelStmt, NO_DIST_OBJECT_OPERATION,
|
{ T_SecLabelStmt, NO_DIST_OBJECT_OPERATION,
|
||||||
NonMainDbCheckSupportedObjectTypeForSecLabel },
|
NonMainDbCheckSupportedObjectTypeForSecLabel },
|
||||||
|
|
|
@ -63,6 +63,7 @@ test: alter_database_propagation
|
||||||
|
|
||||||
test: citus_shards
|
test: citus_shards
|
||||||
test: reassign_owned
|
test: reassign_owned
|
||||||
|
test: alter_database_from_nonmain_db
|
||||||
|
|
||||||
# ----------
|
# ----------
|
||||||
# multi_citus_tools tests utility functions written for citus tools
|
# multi_citus_tools tests utility functions written for citus tools
|
||||||
|
|
|
@ -0,0 +1,8 @@
|
||||||
|
|
||||||
|
--SET citus.superuser TO 'postgres';
|
||||||
|
set citus.enable_create_database_propagation=on;
|
||||||
|
|
||||||
|
create database test_alter_db_from_nonmain_db;
|
||||||
|
|
||||||
|
create database altered_database;
|
||||||
|
reset citus.enable_create_database_propagation;
|
Loading…
Reference in New Issue