diff --git a/src/backend/distributed/deparser/deparse_database_stmts.c b/src/backend/distributed/deparser/deparse_database_stmts.c index 9db1bfc0b..568558dc9 100644 --- a/src/backend/distributed/deparser/deparse_database_stmts.c +++ b/src/backend/distributed/deparser/deparse_database_stmts.c @@ -28,6 +28,7 @@ static void AppendAlterDatabaseOwnerStmt(StringInfo buf, AlterOwnerStmt *stmt); static void AppendAlterDatabaseStmt(StringInfo buf, AlterDatabaseStmt *stmt); +static void AppendDefElemConnLimit(StringInfo buf, DefElem * def); char * DeparseAlterDatabaseOwnerStmt(Node *node) @@ -86,7 +87,7 @@ AppendGrantOnDatabaseStmt(StringInfo buf, GrantStmt *stmt) AppendGrantSharedSuffix(buf, stmt); } - +static void AppendDefElemConnLimit(StringInfo buf, DefElem * def) { appendStringInfo(buf, " CONNECTION LIMIT %ld", (long int) defGetNumeric(def)); diff --git a/src/test/regress/expected/alter_database_propagation.out b/src/test/regress/expected/alter_database_propagation.out index d1edb5b44..ed67684d1 100644 --- a/src/test/regress/expected/alter_database_propagation.out +++ b/src/test/regress/expected/alter_database_propagation.out @@ -1,12 +1,11 @@ set citus.log_remote_commands = true; set citus.grep_remote_commands = '%ALTER DATABASE%'; ---since ALLOW_CONNECTIONS alter option should be executed in a different database +-- since ALLOW_CONNECTIONS alter option should be executed in a different database -- and since we don't have a multiple database support for now, -- this statement will get error alter database regression ALLOW_CONNECTIONS false; ERROR: ALLOW_CONNECTIONS is not supported alter database regression with CONNECTION LIMIT 100; - NOTICE: issuing ALTER DATABASE regression WITH CONNECTION LIMIT 100; DETAIL: on server postgres@localhost:xxxxx connectionId: xxxxxxx NOTICE: issuing ALTER DATABASE regression WITH CONNECTION LIMIT 100;