From 06b1b16543aa0f9fa06fadf1aaf4f59a38a7624e Mon Sep 17 00:00:00 2001 From: gindibay Date: Thu, 14 Sep 2023 02:46:05 +0300 Subject: [PATCH] Fixes indentations --- src/backend/distributed/commands/role.c | 3 ++- src/backend/distributed/commands/utility_hook.c | 1 - .../distributed/deparser/deparse_role_stmts.c | 12 +++++++----- src/include/distributed/commands.h | 2 +- 4 files changed, 10 insertions(+), 8 deletions(-) diff --git a/src/backend/distributed/commands/role.c b/src/backend/distributed/commands/role.c index 4d7fcf4b3..2f4f3707d 100644 --- a/src/backend/distributed/commands/role.c +++ b/src/backend/distributed/commands/role.c @@ -1307,6 +1307,7 @@ EnsureSequentialModeForRoleDDL(void) SetLocalMultiShardModifyModeToSequential(); } + /* * PreprocessAlterDatabaseSetStmt is executed before the statement is applied to the local * postgres instance. @@ -1316,7 +1317,7 @@ EnsureSequentialModeForRoleDDL(void) */ List * PreprocessAlterRoleRenameStmt(Node *node, const char *queryString, - ProcessUtilityContext processUtilityContext) + ProcessUtilityContext processUtilityContext) { if (!ShouldPropagate()) { diff --git a/src/backend/distributed/commands/utility_hook.c b/src/backend/distributed/commands/utility_hook.c index 900f36d10..cf8e0644e 100644 --- a/src/backend/distributed/commands/utility_hook.c +++ b/src/backend/distributed/commands/utility_hook.c @@ -817,7 +817,6 @@ ProcessUtilityInternal(PlannedStmt *pstmt, ddlJobs = processJobs; } } - } if (IsA(parsetree, CreateStmt)) diff --git a/src/backend/distributed/deparser/deparse_role_stmts.c b/src/backend/distributed/deparser/deparse_role_stmts.c index 5243c2fe6..0a66023c0 100644 --- a/src/backend/distributed/deparser/deparse_role_stmts.c +++ b/src/backend/distributed/deparser/deparse_role_stmts.c @@ -205,11 +205,10 @@ DeparseCreateRoleStmt(Node *node) } - /* - * AppendRoleOption generates the string representation of the DefElem option - * and appends it to the buffer. - */ + * AppendRoleOption generates the string representation of the DefElem option + * and appends it to the buffer. + */ static void AppendInlinePriviliges(StringInfo buf, ListCell *optionCell) { @@ -232,7 +231,10 @@ AppendInlinePriviliges(StringInfo buf, ListCell *optionCell) } } -static void AppendStatementType(StringInfo buf, CreateRoleStmt *stmt){ + +static void +AppendStatementType(StringInfo buf, CreateRoleStmt *stmt) +{ switch (stmt->stmt_type) { case ROLESTMT_ROLE: diff --git a/src/include/distributed/commands.h b/src/include/distributed/commands.h index d329ba79d..43429278f 100644 --- a/src/include/distributed/commands.h +++ b/src/include/distributed/commands.h @@ -481,7 +481,7 @@ extern List * PreprocessAlterRoleSetStmt(Node *stmt, const char *queryString, ProcessUtilityContext processUtilityContext); extern List * PreprocessAlterRoleRenameStmt(Node *stmt, const char *queryString, - ProcessUtilityContext processUtilityContext); + ProcessUtilityContext processUtilityContext); extern List * GenerateAlterRoleSetCommandForRole(Oid roleid); extern List * AlterRoleStmtObjectAddress(Node *node,