From e1a912c86d5205371b043772aa89908f2452cbf0 Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Fri, 17 Oct 2025 10:33:54 +0200 Subject: 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 Discussion: https://www.postgresql.org/message-id/flat/8fdfb91e-60fb-44fa-8df6-f5dea47353c9@eisentraut.org --- src/backend/utils/misc/gen_guc_tables.pl | 1 + 1 file changed, 1 insertion(+) (limited to 'src/backend/utils/misc/gen_guc_tables.pl') 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}; -- cgit v1.2.3