summaryrefslogtreecommitdiff
path: root/src/backend/utils/misc/gen_guc_tables.pl
diff options
context:
space:
mode:
authorPeter Eisentraut <peter@eisentraut.org>2025-10-17 10:33:54 +0200
committerPeter Eisentraut <peter@eisentraut.org>2025-10-17 10:33:54 +0200
commite1a912c86d5205371b043772aa89908f2452cbf0 (patch)
tree058afd83f6dabee67368802818a4b459046b171c /src/backend/utils/misc/gen_guc_tables.pl
parent0a7bde46101697ece7549df29078ff9417347438 (diff)
Change config_generic.vartype to be initialized at compile time
Previously, this was initialized at run time so that it did not have to be maintained by hand in guc_tables.c. But since that table is now generated anyway, we might as well generate this bit as well. Reviewed-by: Chao Li <li.evan.chao@gmail.com> Discussion: https://www.postgresql.org/message-id/flat/8fdfb91e-60fb-44fa-8df6-f5dea47353c9@eisentraut.org
Diffstat (limited to 'src/backend/utils/misc/gen_guc_tables.pl')
-rw-r--r--src/backend/utils/misc/gen_guc_tables.pl1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/backend/utils/misc/gen_guc_tables.pl b/src/backend/utils/misc/gen_guc_tables.pl
index a48a9ebd0eb..b187259bf1e 100644
--- a/src/backend/utils/misc/gen_guc_tables.pl
+++ b/src/backend/utils/misc/gen_guc_tables.pl
@@ -68,6 +68,7 @@ sub print_one_table
if $entry->{long_desc};
printf $ofh "\t\t\t.flags = %s,\n", $entry->{flags}
if $entry->{flags};
+ printf $ofh "\t\t\t.vartype = %s,\n", ('PGC_' . uc($type));
print $ofh "\t\t},\n";
printf $ofh "\t\t.variable = &%s,\n", $entry->{variable};
printf $ofh "\t\t.boot_val = %s,\n", $entry->{boot_val};