Adds alter database stmt from non-main db

alter_database_nonmain
gurkanindibay 2024-03-15 12:02:05 +03:00
parent 8afa2d0386
commit 2ca4d3eba7
4 changed files with 11 additions and 0 deletions

View File

@ -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 },

View File

@ -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

View File

@ -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;