From: | Peter Eisentraut <peter(at)eisentraut(dot)org> |
---|---|
To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
Subject: | pgsql: Generate GUC tables from .dat file |
Date: | 2025-09-03 07:52:52 |
Message-ID: | E1utiIW-000HI0-1D@gemulon.postgresql.org |
Views: | Whole Thread | Raw Message | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
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(at)gmail(dot)com>
Reviewed-by: Daniel Gustafsson <daniel(at)yesql(dot)se>
Reviewed-by: David E. Wheeler <david(at)justatheory(dot)com>
Discussion: https://www.postgresql.org/message-id/flat/dae6fe89-1e0c-4c3f-8d92-19d23374fb10%40eisentraut.org
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/63599896545c7869f7dd28cd593e8b548983d613
Modified Files
--------------
src/backend/utils/.gitignore | 1 +
src/backend/utils/Makefile | 11 +-
src/backend/utils/misc/gen_guc_tables.pl | 131 +
src/backend/utils/misc/guc_parameters.dat | 3473 +++++++++++++++++++++
src/backend/utils/misc/guc_tables.c | 4736 +----------------------------
src/bin/pg_dump/dumputils.c | 2 +-
src/include/libpq/libpq.h | 18 +
src/include/utils/.gitignore | 1 +
src/include/utils/guc.h | 23 +
src/include/utils/inval.h | 18 +
src/include/utils/meson.build | 7 +
src/timezone/pgtz.c | 4 +-
12 files changed, 3683 insertions(+), 4742 deletions(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Peter Eisentraut | 2025-09-03 09:51:25 | pgsql: Fix mistake in new GUC tables source |
Previous Message | Richard Guo | 2025-09-03 07:20:15 | pgsql: Fix planner error when estimating SubPlan cost |