From: | Thomas Munro <tmunro(at)postgresql(dot)org> |
---|---|
To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
Subject: | pgsql: Improve notation of cacheinfo table in syscache.c. |
Date: | 2022-12-22 22:06:42 |
Message-ID: | E1p8Ti5-004w4b-MG@gemulon.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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(at)sss(dot)pgh(dot)pa(dot)us>
Reviewed-by: Peter Eisentraut <peter(dot)eisentraut(at)enterprisedb(dot)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(-)
From | Date | Subject | |
---|---|---|---|
Next Message | David Rowley | 2022-12-22 23:44:19 | pgsql: Allow window functions to adjust their frameOptions |
Previous Message | Peter Geoghegan | 2022-12-22 18:43:42 | pgsql: Use scanned_pages to decide when to failsafe check. |