Generate GUC tables from .dat file
Peter Eisentraut <peter@eisentraut.org>
Author:
Peter Eisentraut <peter@eisentraut.org>
Date: 2025-09-03T07:45:17Z
Releases:
19 (unreleased)
Generate GUC tables from .dat file Store the information in guc_tables.c in a .dat file similar to the catalog data in src/include/catalog/, and generate a part of guc_tables.c from that. The goal is to make it easier to edit that information, and to be able to make changes to the downstream data structures more easily. (Essentially, those are the same reasons as for the original adoption of the .dat format.) Reviewed-by: John Naylor <johncnaylorls@gmail.com> Reviewed-by: Daniel Gustafsson <daniel@yesql.se> Reviewed-by: David E. Wheeler <david@justatheory.com> Discussion: https://www.postgresql.org/message-id/flat/dae6fe89-1e0c-4c3f-8d92-19d23374fb10%40eisentraut.org
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/utils/.gitignore | modified | +1 −0 |
| src/backend/utils/Makefile | modified | +7 −4 |
| src/backend/utils/misc/gen_guc_tables.pl | added | +131 −0 |
| src/backend/utils/misc/guc_parameters.dat | added | +3473 −0 |
| src/backend/utils/misc/guc_tables.c | modified | +1 −4735 |
| src/bin/pg_dump/dumputils.c | modified | +1 −1 |
| src/include/libpq/libpq.h | modified | +18 −0 |
| src/include/utils/.gitignore | modified | +1 −0 |
| src/include/utils/guc.h | modified | +23 −0 |
| src/include/utils/inval.h | modified | +18 −0 |
| src/include/utils/meson.build | modified | +7 −0 |
| src/timezone/pgtz.c | modified | +2 −2 |
Discussion
- Generate GUC tables from .dat file 21 messages · 2025-08-11 → 2025-09-23