aboutsummaryrefslogtreecommitdiff
path: root/src/backend/parser/parse_utilcmd.c
diff options
context:
space:
mode:
authorAlvaro Herrera <alvherre@alvh.no-ip.org>2024-01-24 15:01:30 +0100
committerAlvaro Herrera <alvherre@alvh.no-ip.org>2024-01-24 15:01:30 +0100
commit74a73063106583b1f49274a2cd1df42e35107361 (patch)
tree112d7b6748910d3fca405f56cd0d868e945fe78b /src/backend/parser/parse_utilcmd.c
parent94edfe250c6a200d2067b0debfe00b4122e9b11e (diff)
downloadpostgresql-74a73063106583b1f49274a2cd1df42e35107361.tar.gz
postgresql-74a73063106583b1f49274a2cd1df42e35107361.zip
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
Diffstat (limited to 'src/backend/parser/parse_utilcmd.c')
0 files changed, 0 insertions, 0 deletions