pgsql: Improve notation of BuiltinTrancheNames - Mailing list pgsql-committers

From Alvaro Herrera
Subject pgsql: Improve notation of BuiltinTrancheNames
Date
Msg-id E1rSdrq-002tIW-EL@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Improve notation of BuiltinTrancheNames

Use C99 designated initializer syntax for array elements, instead of
writing the position in a comment.  This is less verbose and much more
readable.  Akin to cc150596341e.

One disadvantage is that the BuiltinTrancheNames array now has a hole of
51 NULLs -- previously, the array elements were shifted 51 elements
 downward to avoid this.  This can be fixed by merging the
IndividualLWLockNames array into BuiltinTrancheNames, which would occupy
those 51 pointers, but because it requires some arguably ugly Meson
hackery, it's left for later.

Discussion: https://postgr.es/m/202401231025.gbv4nnte5fmm@alvherre.pgsql

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/74a73063106583b1f49274a2cd1df42e35107361

Modified Files
--------------
src/backend/storage/lmgr/lwlock.c | 97 +++++++++++++--------------------------
1 file changed, 33 insertions(+), 64 deletions(-)


pgsql-committers by date:

Previous
From: Michael Paquier
Date:
Subject: pgsql: pgbench: Add \syncpipeline
Next
From: Peter Eisentraut
Date:
Subject: pgsql: Add temporal PRIMARY KEY and UNIQUE constraints