mirror of https://github.com/citusdata/citus.git
Fixes after merge problems
parent
df0f8036ef
commit
c5a75f53a9
|
@ -28,6 +28,7 @@
|
||||||
|
|
||||||
static void AppendAlterDatabaseOwnerStmt(StringInfo buf, AlterOwnerStmt *stmt);
|
static void AppendAlterDatabaseOwnerStmt(StringInfo buf, AlterOwnerStmt *stmt);
|
||||||
static void AppendAlterDatabaseStmt(StringInfo buf, AlterDatabaseStmt *stmt);
|
static void AppendAlterDatabaseStmt(StringInfo buf, AlterDatabaseStmt *stmt);
|
||||||
|
static void AppendDefElemConnLimit(StringInfo buf, DefElem * def);
|
||||||
|
|
||||||
char *
|
char *
|
||||||
DeparseAlterDatabaseOwnerStmt(Node *node)
|
DeparseAlterDatabaseOwnerStmt(Node *node)
|
||||||
|
@ -86,7 +87,7 @@ AppendGrantOnDatabaseStmt(StringInfo buf, GrantStmt *stmt)
|
||||||
AppendGrantSharedSuffix(buf, stmt);
|
AppendGrantSharedSuffix(buf, stmt);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void
|
||||||
AppendDefElemConnLimit(StringInfo buf, DefElem * def)
|
AppendDefElemConnLimit(StringInfo buf, DefElem * def)
|
||||||
{
|
{
|
||||||
appendStringInfo(buf, " CONNECTION LIMIT %ld", (long int) defGetNumeric(def));
|
appendStringInfo(buf, " CONNECTION LIMIT %ld", (long int) defGetNumeric(def));
|
||||||
|
|
|
@ -1,12 +1,11 @@
|
||||||
set citus.log_remote_commands = true;
|
set citus.log_remote_commands = true;
|
||||||
set citus.grep_remote_commands = '%ALTER DATABASE%';
|
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,
|
-- and since we don't have a multiple database support for now,
|
||||||
-- this statement will get error
|
-- this statement will get error
|
||||||
alter database regression ALLOW_CONNECTIONS false;
|
alter database regression ALLOW_CONNECTIONS false;
|
||||||
ERROR: ALLOW_CONNECTIONS is not supported
|
ERROR: ALLOW_CONNECTIONS is not supported
|
||||||
alter database regression with CONNECTION LIMIT 100;
|
alter database regression with CONNECTION LIMIT 100;
|
||||||
|
|
||||||
NOTICE: issuing ALTER DATABASE regression WITH CONNECTION LIMIT 100;
|
NOTICE: issuing ALTER DATABASE regression WITH CONNECTION LIMIT 100;
|
||||||
DETAIL: on server postgres@localhost:xxxxx connectionId: xxxxxxx
|
DETAIL: on server postgres@localhost:xxxxx connectionId: xxxxxxx
|
||||||
NOTICE: issuing ALTER DATABASE regression WITH CONNECTION LIMIT 100;
|
NOTICE: issuing ALTER DATABASE regression WITH CONNECTION LIMIT 100;
|
||||||
|
|
Loading…
Reference in New Issue