git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: e5da0fe) | patch
Rework lwlocknames.txt to become lwlocklist.h
2024年3月20日 10:46:11 +0000 (11:46 +0100)
2024年3月20日 10:55:20 +0000 (11:55 +0100)
commit da952b415f4444fcc85ea79c3f006af142d3c90a
Rework lwlocknames.txt to become lwlocklist.h

This way, we can fold the list of lock names to occur in
BuiltinTrancheNames instead of having its own separate array. This
saves two lines of code in GetLWTrancheName and some space in
BuiltinTrancheNames, as foreseen in commit 74a730631065, as well as
removing the need for a separate lwlocknames.c file.

We still have to build lwlocknames.h using Perl code, which initially I
wanted to avoid, but it gives us the chance to cross-check
wait_event_names.txt.

Discussion: https://postgr.es/m/202401231025.gbv4nnte5fmm@alvherre.pgsql
12 files changed:
src/backend/Makefile diff | blob | blame | history
src/backend/storage/lmgr/.gitignore diff | blob | blame | history
src/backend/storage/lmgr/Makefile diff | blob | blame | history
src/backend/storage/lmgr/generate-lwlocknames.pl diff | blob | blame | history
src/backend/storage/lmgr/lwlock.c diff | blob | blame | history
src/backend/storage/lmgr/lwlocknames.txt [deleted file] blob | blame | history
src/backend/storage/lmgr/meson.build diff | blob | blame | history
src/backend/utils/activity/wait_event_names.txt diff | blob | blame | history
src/include/storage/lwlock.h diff | blob | blame | history
src/include/storage/lwlocklist.h [new file with mode: 0644] blob
src/include/storage/meson.build diff | blob | blame | history
src/tools/pginclude/headerscheck diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /