mirror of https://github.com/citusdata/citus.git
Fixes indent problem
parent
f09cc032a1
commit
eac68e3af4
|
@ -126,7 +126,8 @@ AppendVarSetValue(StringInfo buf, VariableSetStmt *setStmt)
|
||||||
/*
|
/*
|
||||||
* AppendVariableSetDb appends a string representing the VariableSetStmt to a buffer
|
* AppendVariableSetDb appends a string representing the VariableSetStmt to a buffer
|
||||||
*/
|
*/
|
||||||
void AppendVariableSet(StringInfo buf, VariableSetStmt *setStmt)
|
void
|
||||||
|
AppendVariableSet(StringInfo buf, VariableSetStmt *setStmt)
|
||||||
{
|
{
|
||||||
switch (setStmt->kind)
|
switch (setStmt->kind)
|
||||||
{
|
{
|
||||||
|
@ -138,7 +139,8 @@ void AppendVariableSet(StringInfo buf, VariableSetStmt *setStmt)
|
||||||
|
|
||||||
case VAR_SET_CURRENT:
|
case VAR_SET_CURRENT:
|
||||||
{
|
{
|
||||||
appendStringInfo(buf, " SET %s FROM CURRENT", quote_identifier(setStmt->name));
|
appendStringInfo(buf, " SET %s FROM CURRENT", quote_identifier(
|
||||||
|
setStmt->name));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -169,4 +171,3 @@ void AppendVariableSet(StringInfo buf, VariableSetStmt *setStmt)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -45,6 +45,7 @@ DeparseAlterDatabaseOwnerStmt(Node *node)
|
||||||
return str.data;
|
return str.data;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
AppendAlterDatabaseOwnerStmt(StringInfo buf, AlterOwnerStmt *stmt)
|
AppendAlterDatabaseOwnerStmt(StringInfo buf, AlterOwnerStmt *stmt)
|
||||||
{
|
{
|
||||||
|
@ -56,6 +57,7 @@ AppendAlterDatabaseOwnerStmt(StringInfo buf, AlterOwnerStmt *stmt)
|
||||||
RoleSpecString(stmt->newowner, true));
|
RoleSpecString(stmt->newowner, true));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
AppendGrantDatabases(StringInfo buf, GrantStmt *stmt)
|
AppendGrantDatabases(StringInfo buf, GrantStmt *stmt)
|
||||||
{
|
{
|
||||||
|
@ -73,6 +75,7 @@ AppendGrantDatabases(StringInfo buf, GrantStmt *stmt)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
AppendGrantOnDatabaseStmt(StringInfo buf, GrantStmt *stmt)
|
AppendGrantOnDatabaseStmt(StringInfo buf, GrantStmt *stmt)
|
||||||
{
|
{
|
||||||
|
@ -85,6 +88,7 @@ AppendGrantOnDatabaseStmt(StringInfo buf, GrantStmt *stmt)
|
||||||
AppendGrantSharedSuffix(buf, stmt);
|
AppendGrantSharedSuffix(buf, stmt);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
AppendDefElemIsTemplate(StringInfo buf, DefElem *def)
|
AppendDefElemIsTemplate(StringInfo buf, DefElem *def)
|
||||||
{
|
{
|
||||||
|
@ -92,6 +96,7 @@ AppendDefElemIsTemplate(StringInfo buf, DefElem *def)
|
||||||
quote_literal_cstr(strVal(def->arg)));
|
quote_literal_cstr(strVal(def->arg)));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
AppendDefElemConnLimit(StringInfo buf, DefElem *def)
|
AppendDefElemConnLimit(StringInfo buf, DefElem *def)
|
||||||
{
|
{
|
||||||
|
@ -121,7 +126,6 @@ AppendAlterDatabaseStmt(StringInfo buf, AlterDatabaseStmt *stmt)
|
||||||
}
|
}
|
||||||
else if (strcmp(def->defname, "tablespace") == 0)
|
else if (strcmp(def->defname, "tablespace") == 0)
|
||||||
{
|
{
|
||||||
|
|
||||||
ereport(ERROR,
|
ereport(ERROR,
|
||||||
errmsg("SET tablespace is not supported"));
|
errmsg("SET tablespace is not supported"));
|
||||||
}
|
}
|
||||||
|
@ -142,6 +146,7 @@ AppendAlterDatabaseStmt(StringInfo buf, AlterDatabaseStmt *stmt)
|
||||||
appendStringInfo(buf, ";");
|
appendStringInfo(buf, ";");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
char *
|
char *
|
||||||
DeparseGrantOnDatabaseStmt(Node *node)
|
DeparseGrantOnDatabaseStmt(Node *node)
|
||||||
{
|
{
|
||||||
|
@ -156,6 +161,7 @@ DeparseGrantOnDatabaseStmt(Node *node)
|
||||||
return str.data;
|
return str.data;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
char *
|
char *
|
||||||
DeparseAlterDatabaseStmt(Node *node)
|
DeparseAlterDatabaseStmt(Node *node)
|
||||||
{
|
{
|
||||||
|
@ -169,6 +175,7 @@ DeparseAlterDatabaseStmt(Node *node)
|
||||||
return str.data;
|
return str.data;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#if PG_VERSION_NUM >= PG_VERSION_15
|
#if PG_VERSION_NUM >= PG_VERSION_15
|
||||||
char *
|
char *
|
||||||
DeparseAlterDatabaseRefreshCollStmt(Node *node)
|
DeparseAlterDatabaseRefreshCollStmt(Node *node)
|
||||||
|
@ -185,8 +192,8 @@ DeparseAlterDatabaseRefreshCollStmt(Node *node)
|
||||||
return str.data;
|
return str.data;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
@ -199,6 +206,7 @@ AppendAlterDatabaseSetStmt(StringInfo buf, AlterDatabaseSetStmt *stmt)
|
||||||
AppendVariableSet(buf, varSetStmt);
|
AppendVariableSet(buf, varSetStmt);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
char *
|
char *
|
||||||
DeparseAlterDatabaseSetStmt(Node *node)
|
DeparseAlterDatabaseSetStmt(Node *node)
|
||||||
{
|
{
|
||||||
|
|
|
@ -299,7 +299,6 @@ AppendDefElemSupport(StringInfo buf, DefElem *def)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* DeparseRenameFunctionStmt builds and returns a string representing the RenameStmt
|
* DeparseRenameFunctionStmt builds and returns a string representing the RenameStmt
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue