pgsql: Improve notation of cacheinfo table in syscache.c. - Mailing list pgsql-committers

From Thomas Munro
Subject pgsql: Improve notation of cacheinfo table in syscache.c.
Date
Msg-id E1p8Ti5-004w4b-MG@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/cc150596341e2a7913519769a88a1537c2e94720

Modified Files
--------------
src/backend/utils/cache/syscache.c | 940 ++++++++++++-------------------------
1 file changed, 292 insertions(+), 648 deletions(-)


pgsql-committers by date:

Previous
From: Peter Geoghegan
Date:
Subject: pgsql: Use scanned_pages to decide when to failsafe check.
Next
From: David Rowley
Date:
Subject: pgsql: Allow window functions to adjust their frameOptions