Improve notation of cacheinfo table in syscache.c.
authorThomas Munro <tmunro@postgresql.org>
Thu, 22 Dec 2022 21:40:18 +0000 (10:40 +1300)
committerThomas Munro <tmunro@postgresql.org>
Thu, 22 Dec 2022 21:40:18 +0000 (10:40 +1300)
commitcc150596341e2a7913519769a88a1537c2e94720
treeefff4206f58d731307b5c71156a597bea5eba067
parent07eef53955ea9885dd3e4701b7eaa34ccdf2ae02
Improve notation of cacheinfo table in syscache.c.

Use C99 designated initializer syntax for the array elements, instead of
writing the enumerator name and position in a comment.  Replace nkeys
and key with a local variadic macro, for a shorter notation.

Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us>
Reviewed-by: Peter Eisentraut <peter.eisentraut@enterprisedb.com>
Discussion: https://postgr.es/m/CA%2BhUKGKdpDjKL2jgC-GpoL4DGZU1YPqnOFHbDqFkfRQcPaR5DQ%40mail.gmail.com
src/backend/utils/cache/syscache.c