mirror of
https://github.com/postgres/postgres.git
synced 2025-12-19 17:02:53 +03:00
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
This commit is contained in:
@@ -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};
|
||||
|
||||
Reference in New Issue
Block a user