Re: Improve readability by using designated initializers when possible - Mailing list pgsql-hackers

From Jelte Fennema-Nio
Subject Re: Improve readability by using designated initializers when possible
Date
Msg-id CAGECzQQmd9UoA6UqGoa5iDO=419h2o26xZHnqXq9GWz2Vnnn9Q@mail.gmail.com
Whole thread Raw
In response to Re: Improve readability by using designated initializers when possible  (Japin Li <japinli@hotmail.com>)
Responses Re: Improve readability by using designated initializers when possible
List pgsql-hackers
On Tue, 5 Mar 2024 at 14:50, Japin Li <japinli@hotmail.com> wrote:
> Attach a patch to rewrite dispatch_table array using C99-designated
> initializer syntax.

Looks good. Two small things:

+       [EEOP_LAST] = &&CASE_EEOP_LAST,

Is EEOP_LAST actually needed in this array? It seems unused afaict. If
indeed not needed, that would be good to remove in an additional
commit.

- *
- * The order of entries needs to be kept in sync with the dispatch_table[]
- * array in execExprInterp.c:ExecInterpExpr().

I think it would be good to at least keep the comment saying that this
array should be updated (only the order doesn't need to be strictly
kept in sync anymore).



pgsql-hackers by date:

Previous
From: Pavel Stehule
Date:
Subject: Re: Reducing the log spam
Next
From: Jelte Fennema-Nio
Date:
Subject: Re: Reducing the log spam