Fixes indent problem

pull/7181/head
gindibay 2023-09-05 13:18:47 +03:00
parent f09cc032a1
commit eac68e3af4
3 changed files with 104 additions and 96 deletions

View File

@ -126,7 +126,8 @@ AppendVarSetValue(StringInfo buf, VariableSetStmt *setStmt)
/*
* 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)
{
@ -138,7 +139,8 @@ void AppendVariableSet(StringInfo buf, VariableSetStmt *setStmt)
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;
}
@ -169,4 +171,3 @@ void AppendVariableSet(StringInfo buf, VariableSetStmt *setStmt)
}
}
}

View File

@ -45,6 +45,7 @@ DeparseAlterDatabaseOwnerStmt(Node *node)
return str.data;
}
static void
AppendAlterDatabaseOwnerStmt(StringInfo buf, AlterOwnerStmt *stmt)
{
@ -56,6 +57,7 @@ AppendAlterDatabaseOwnerStmt(StringInfo buf, AlterOwnerStmt *stmt)
RoleSpecString(stmt->newowner, true));
}
static void
AppendGrantDatabases(StringInfo buf, GrantStmt *stmt)
{
@ -73,6 +75,7 @@ AppendGrantDatabases(StringInfo buf, GrantStmt *stmt)
}
}
static void
AppendGrantOnDatabaseStmt(StringInfo buf, GrantStmt *stmt)
{
@ -85,6 +88,7 @@ AppendGrantOnDatabaseStmt(StringInfo buf, GrantStmt *stmt)
AppendGrantSharedSuffix(buf, stmt);
}
static void
AppendDefElemIsTemplate(StringInfo buf, DefElem *def)
{
@ -92,6 +96,7 @@ AppendDefElemIsTemplate(StringInfo buf, DefElem *def)
quote_literal_cstr(strVal(def->arg)));
}
static void
AppendDefElemConnLimit(StringInfo buf, DefElem *def)
{
@ -121,7 +126,6 @@ AppendAlterDatabaseStmt(StringInfo buf, AlterDatabaseStmt *stmt)
}
else if (strcmp(def->defname, "tablespace") == 0)
{
ereport(ERROR,
errmsg("SET tablespace is not supported"));
}
@ -142,6 +146,7 @@ AppendAlterDatabaseStmt(StringInfo buf, AlterDatabaseStmt *stmt)
appendStringInfo(buf, ";");
}
char *
DeparseGrantOnDatabaseStmt(Node *node)
{
@ -156,6 +161,7 @@ DeparseGrantOnDatabaseStmt(Node *node)
return str.data;
}
char *
DeparseAlterDatabaseStmt(Node *node)
{
@ -169,6 +175,7 @@ DeparseAlterDatabaseStmt(Node *node)
return str.data;
}
#if PG_VERSION_NUM >= PG_VERSION_15
char *
DeparseAlterDatabaseRefreshCollStmt(Node *node)
@ -185,8 +192,8 @@ DeparseAlterDatabaseRefreshCollStmt(Node *node)
return str.data;
}
#endif
#endif
static void
@ -199,6 +206,7 @@ AppendAlterDatabaseSetStmt(StringInfo buf, AlterDatabaseSetStmt *stmt)
AppendVariableSet(buf, varSetStmt);
}
char *
DeparseAlterDatabaseSetStmt(Node *node)
{

View File

@ -299,7 +299,6 @@ AppendDefElemSupport(StringInfo buf, DefElem *def)
}
/*
* DeparseRenameFunctionStmt builds and returns a string representing the RenameStmt
*/