diff options
| author | Alvaro Herrera | 2024-03-20 10:46:11 +0000 |
|---|---|---|
| committer | Alvaro Herrera | 2024-03-20 10:55:20 +0000 |
| commit | da952b415f4444fcc85ea79c3f006af142d3c90a (patch) | |
| tree | a2467107f000c93367df5041701d8dc401b3ed9a /src/tools/pginclude | |
| parent | e5da0fe3c22b34c4433f1729e88495554b5331ed (diff) | |
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
Diffstat (limited to 'src/tools/pginclude')
| -rwxr-xr-x | src/tools/pginclude/headerscheck | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/tools/pginclude/headerscheck b/src/tools/pginclude/headerscheck index a59be39307e..4a157d0a5f2 100755 --- a/src/tools/pginclude/headerscheck +++ b/src/tools/pginclude/headerscheck @@ -133,6 +133,7 @@ do test "$f" = src/interfaces/ecpg/preproc/c_kwlist.h && continue test "$f" = src/interfaces/ecpg/preproc/ecpg_kwlist.h && continue test "$f" = src/include/regex/regerrs.h && continue + test "$f" = src/include/storage/lwlocklist.h && continue test "$f" = src/include/tcop/cmdtaglist.h && continue test "$f" = src/pl/plpgsql/src/plerrcodes.h && continue test "$f" = src/pl/plpython/spiexceptions.h && continue |
