From 2d072dfd334550b75a309eddb2c5b769bc92e17e Mon Sep 17 00:00:00 2001 From: gurkanindibay Date: Tue, 26 Dec 2023 22:50:33 +0300 Subject: [PATCH] Fixes review comments --- .../distributed/deparser/deparse_comment_stmts.c | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/src/backend/distributed/deparser/deparse_comment_stmts.c b/src/backend/distributed/deparser/deparse_comment_stmts.c index 75aa34287..269e0a883 100644 --- a/src/backend/distributed/deparser/deparse_comment_stmts.c +++ b/src/backend/distributed/deparser/deparse_comment_stmts.c @@ -23,17 +23,12 @@ #include "distributed/citus_ruleutils.h" #include "distributed/commands.h" +#include "distributed/comment.h" #include "distributed/deparser.h" #include "distributed/listutils.h" #include "distributed/log_utils.h" -typedef struct -{ - char *name; - int type; -} ObjectTypeInfo; - const ObjectTypeInfo ObjectTypeInfos[] = { [OBJECT_DATABASE] = { "DATABASE", T_String }, @@ -41,7 +36,11 @@ const ObjectTypeInfo ObjectTypeInfos[] = [OBJECT_TSCONFIGURATION] = { "TEXT SEARCH CONFIGURATION", T_List }, [OBJECT_TSDICTIONARY] = { "TEXT SEARCH DICTIONARY", T_List }, - /* etc. */ + /* When support for propagating comments to new objects is introduced, an entry for each + * statement type should be added to this list. The first element in each entry is the keyword + * that will be included in the 'COMMENT ..' statement. The second element is the type of + * stmt->object, which represents the name of the propagated object. + */ }; char *