mirror of https://github.com/citusdata/citus.git
Fixes indentation problems
parent
e45c3c7ed8
commit
458f820755
|
@ -469,7 +469,7 @@ static DistributeObjectOps Database_Rename = {
|
|||
static DistributeObjectOps Database_RefreshColl = {
|
||||
.deparse = DeparseAlterDatabaseRefreshCollStmt,
|
||||
.qualify = NULL,
|
||||
.preprocess = NULL,//TODO: Add PostprocessAfter adding addresses
|
||||
.preprocess = NULL,/*TODO: Add PostprocessAfter adding addresses */
|
||||
.postprocess = NULL,
|
||||
.objectType = OBJECT_DATABASE,
|
||||
.operationType = DIST_OPS_ALTER,
|
||||
|
|
|
@ -7,10 +7,8 @@
|
|||
#include "utils/guc.h"
|
||||
|
||||
|
||||
static void
|
||||
AppendVarSetValue2(StringInfo buf, VariableSetStmt *setStmt);
|
||||
static void
|
||||
AppendVariableSet2(StringInfo buf, VariableSetStmt *setStmt);
|
||||
static void AppendVarSetValue2(StringInfo buf, VariableSetStmt *setStmt);
|
||||
static void AppendVariableSet2(StringInfo buf, VariableSetStmt *setStmt);
|
||||
|
||||
|
||||
static void
|
||||
|
@ -115,6 +113,7 @@ AppendVarSetValue2(StringInfo buf, VariableSetStmt *setStmt)
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* AppendVariableSet appends a string representing the VariableSetStmt to a buffer
|
||||
*/
|
||||
|
|
|
@ -42,6 +42,7 @@ DeparseAlterDatabaseOwnerStmt(Node *node)
|
|||
return str.data;
|
||||
}
|
||||
|
||||
|
||||
static void
|
||||
AppendAlterDatabaseOwnerStmt(StringInfo buf, AlterOwnerStmt *stmt)
|
||||
{
|
||||
|
@ -53,6 +54,7 @@ AppendAlterDatabaseOwnerStmt(StringInfo buf, AlterOwnerStmt *stmt)
|
|||
RoleSpecString(stmt->newowner, true));
|
||||
}
|
||||
|
||||
|
||||
static void
|
||||
AppendGrantDatabases(StringInfo buf, GrantStmt *stmt)
|
||||
{
|
||||
|
@ -70,6 +72,7 @@ AppendGrantDatabases(StringInfo buf, GrantStmt *stmt)
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
static void
|
||||
AppendGrantOnDatabaseStmt(StringInfo buf, GrantStmt *stmt)
|
||||
{
|
||||
|
@ -226,6 +229,7 @@ AppendDefElemConnLimit(StringInfo buf, DefElem *def)
|
|||
appendStringInfo(buf, " CONNECTION LIMIT %ld", (long int) defGetNumeric(def));
|
||||
}
|
||||
|
||||
|
||||
static void
|
||||
AppendAlterDatabaseStmt(StringInfo buf, AlterDatabaseStmt *stmt)
|
||||
{
|
||||
|
@ -253,7 +257,8 @@ AppendAlterDatabaseStmt(StringInfo buf, AlterDatabaseStmt *stmt)
|
|||
ereport(ERROR,
|
||||
errmsg("ALLOW_CONNECTIONS is not supported"));
|
||||
}
|
||||
else{
|
||||
else
|
||||
{
|
||||
ereport(ERROR,
|
||||
errmsg("unrecognized AlterDatabaseStmt option: %s",
|
||||
def->defname));
|
||||
|
@ -316,6 +321,7 @@ DeparseGrantOnDatabaseStmt(Node *node)
|
|||
return str.data;
|
||||
}
|
||||
|
||||
|
||||
char *
|
||||
DeparseAlterDatabaseStmt(Node *node)
|
||||
{
|
||||
|
@ -338,11 +344,13 @@ DeparseAlterDatabaseRenameStmt(Node *node)
|
|||
StringInfoData str;
|
||||
initStringInfo(&str);
|
||||
|
||||
appendStringInfo(&str, "ALTER DATABASE %s RENAME TO %s;", quote_identifier(stmt->subname), quote_identifier(stmt->newname));
|
||||
appendStringInfo(&str, "ALTER DATABASE %s RENAME TO %s;", quote_identifier(
|
||||
stmt->subname), quote_identifier(stmt->newname));
|
||||
|
||||
return str.data;
|
||||
}
|
||||
|
||||
|
||||
char *
|
||||
DeparseAlterDatabaseRefreshCollStmt(Node *node)
|
||||
{
|
||||
|
@ -351,7 +359,8 @@ DeparseAlterDatabaseRefreshCollStmt(Node *node)
|
|||
StringInfoData str;
|
||||
initStringInfo(&str);
|
||||
|
||||
appendStringInfo(&str, "ALTER DATABASE %s REFRESH COLLATION;", quote_identifier(stmt->dbname));
|
||||
appendStringInfo(&str, "ALTER DATABASE %s REFRESH COLLATION;", quote_identifier(
|
||||
stmt->dbname));
|
||||
|
||||
return str.data;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue