pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Thomas Munro <tmunro@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Improve notation of cacheinfo table in syscache.c.
Date: Thu, 22 Dec 2022 22:06:42 +0000
Message-ID: <E1p8Ti5-004w4b-MG@gemulon.postgresql.org> (raw)

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(-)



Message-ID: <E1p8Ti5-004w4b-MG@gemulon.postgresql.org>
Permalink:  ../E1p8Ti5-004w4b-MG@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1p8Ti5-004w4b-MG@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: tmunro@postgresql.org
  Subject: Re: pgsql: Improve notation of cacheinfo table in syscache.c.
  In-Reply-To: <E1p8Ti5-004w4b-MG@gemulon.postgresql.org>
  References: <E1p8Ti5-004w4b-MG@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox