From 959d26db89e110f42aba74b170e597d70753cc67 Mon Sep 17 00:00:00 2001 From: gindibay Date: Wed, 11 Oct 2023 20:01:12 +0300 Subject: [PATCH] Fixes code indents --- src/backend/distributed/commands/database.c | 4 +++- src/backend/distributed/deparser/deparse_database_stmts.c | 2 ++ src/include/distributed/commands.h | 3 ++- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/backend/distributed/commands/database.c b/src/backend/distributed/commands/database.c index baf7fb7dc7b..d8c74c6231b 100644 --- a/src/backend/distributed/commands/database.c +++ b/src/backend/distributed/commands/database.c @@ -240,12 +240,13 @@ PreprocessAlterDatabaseRefreshCollStmt(Node *node, const char *queryString, return NodeDDLTaskList(NON_COORDINATOR_NODES, commands); } + #endif List * PreprocessAlterDatabaseRenameStmt(Node *node, const char *queryString, - ProcessUtilityContext processUtilityContext) + ProcessUtilityContext processUtilityContext) { if (!ShouldPropagate()) { @@ -265,6 +266,7 @@ PreprocessAlterDatabaseRenameStmt(Node *node, const char *queryString, return NodeDDLTaskList(NON_COORDINATOR_NODES, commands); } + /* * CreateDDLTaskList creates a task list for running a single DDL command. */ diff --git a/src/backend/distributed/deparser/deparse_database_stmts.c b/src/backend/distributed/deparser/deparse_database_stmts.c index daa1d28e3f3..428ba55cfcc 100644 --- a/src/backend/distributed/deparser/deparse_database_stmts.c +++ b/src/backend/distributed/deparser/deparse_database_stmts.c @@ -208,6 +208,7 @@ DeparseAlterDatabaseRefreshCollStmt(Node *node) return str.data; } + #endif char * @@ -225,6 +226,7 @@ DeparseAlterDatabaseRenameStmt(Node *node) return str.data; } + static void AppendAlterDatabaseSetStmt(StringInfo buf, AlterDatabaseSetStmt *stmt) { diff --git a/src/include/distributed/commands.h b/src/include/distributed/commands.h index fd810616fa0..421bc10ff8c 100644 --- a/src/include/distributed/commands.h +++ b/src/include/distributed/commands.h @@ -232,7 +232,8 @@ extern List * PreprocessDropDatabaseStmt(Node *node, const char *queryString, ProcessUtilityContext processUtilityContext); extern List * PreprocessAlterDatabaseRenameStmt(Node *node, const char *queryString, - ProcessUtilityContext processUtilityContext); + ProcessUtilityContext + processUtilityContext); /* domain.c - forward declarations */ extern List * CreateDomainStmtObjectAddress(Node *node, bool missing_ok, bool