diff options
| author | Álvaro Herrera <alvherre@kurilemu.de> | 2025-09-26 15:21:49 +0200 |
|---|---|---|
| committer | Álvaro Herrera <alvherre@kurilemu.de> | 2025-09-26 15:21:49 +0200 |
| commit | dbf8cfb4f02eb9ec5525de1761675f9babfd30e3 (patch) | |
| tree | 7bb306ce314cf262c6bb54473bc7571d9cab1d4b /src/tools/pginclude | |
| parent | 8bb174295e8920fe202e2fb4c8d271e4546b9e98 (diff) | |
Create a separate file listing backend types
Use our established coding pattern to reduce maintenance pain when
adding other per-process-type characteristics.
Like PG_KEYWORD, PG_CMDTAG, PG_RMGR.
To keep the strings translatable, the relevant makefile now also scans
src/include for this specific file. I didn't want to have it scan all
.h files, as then gettext would have to scan all header files. I didn't
find any way to affect the meson behavior in this respect though.
Author: Álvaro Herrera <alvherre@kurilemu.de>
Co-authored-by: Jonathan Gonzalez V. <jonathan.abdiel@gmail.com>
Discussion: https://postgr.es/m/202507151830.dwgz5nmmqtdy@alvherre.pgsql
Diffstat (limited to 'src/tools/pginclude')
| -rwxr-xr-x | src/tools/pginclude/headerscheck | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/tools/pginclude/headerscheck b/src/tools/pginclude/headerscheck index d017490a538..a52a5580bdc 100755 --- a/src/tools/pginclude/headerscheck +++ b/src/tools/pginclude/headerscheck @@ -126,13 +126,14 @@ do # they contain lists that might have multiple use-cases. test "$f" = src/include/access/rmgrlist.h && continue test "$f" = src/include/parser/kwlist.h && continue - test "$f" = src/pl/plpgsql/src/pl_reserved_kwlist.h && continue - test "$f" = src/pl/plpgsql/src/pl_unreserved_kwlist.h && continue - test "$f" = src/interfaces/ecpg/preproc/c_kwlist.h && continue - test "$f" = src/interfaces/ecpg/preproc/ecpg_kwlist.h && continue + test "$f" = src/include/postmaster/proctypelist.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/interfaces/ecpg/preproc/c_kwlist.h && continue + test "$f" = src/interfaces/ecpg/preproc/ecpg_kwlist.h && continue + test "$f" = src/pl/plpgsql/src/pl_reserved_kwlist.h && continue + test "$f" = src/pl/plpgsql/src/pl_unreserved_kwlist.h && continue test "$f" = src/pl/plpgsql/src/plerrcodes.h && continue test "$f" = src/pl/plpython/spiexceptions.h && continue test "$f" = src/pl/tcl/pltclerrcodes.h && continue |
