Re: PATCH: Add REINDEX tag to event triggers - Mailing list pgsql-hackers

From jian he
Subject Re: PATCH: Add REINDEX tag to event triggers
Date
Msg-id CACJufxFPTWsdNj=XLnuBuf=J68NAHPNn7C0uQodzPHYQ=h=Lnw@mail.gmail.com
Whole thread Raw
In response to Re: PATCH: Add REINDEX tag to event triggers  (Ajin Cherian <itsajin@gmail.com>)
Responses Re: PATCH: Add REINDEX tag to event triggers
List pgsql-hackers
On Mon, Nov 27, 2023 at 6:58 PM Ajin Cherian <itsajin@gmail.com> wrote:
>
> I just started reviewing the patch. Some minor comments:
> In patch 0001:
> In standard_ProcessUtility(), since you are unconditionally calling
> ProcessUtilitySlow() in case of T_ReindexStmt, you really don't need
> the case statement for T_ReindexStmt just like all the other commands
> which have event trigger support. It will call ProcessUtilitySlow() as
> default.
>
> In patch 0004:
> No need to duplicate reindex_event_trigger_collect in indexcmds.c
> since it is already present in index.c. Add it to index.h and make the
> function extern so that it can be accessed in both index.c and
> indexcmds.c
>
> regards,
> Ajin Cherian
> Fujitsu Australia

Thanks for reviewing it!
The above 2 suggestions are good, now the code is more neat.

Attachment

pgsql-hackers by date:

Previous
From: vignesh C
Date:
Subject: Re: Improve tab completion for ALTER DEFAULT PRIVILEGE and ALTER TABLE
Next
From: Alvaro Herrera
Date:
Subject: Re: Missing docs on AT TIME ZONE precedence?