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/include/utils/guc_tables.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/include/utils/guc_tables.h') diff --git a/src/include/utils/guc_tables.h b/src/include/utils/guc_tables.h index c5776be029b..3de3d809545 100644 --- a/src/include/utils/guc_tables.h +++ b/src/include/utils/guc_tables.h @@ -177,8 +177,8 @@ struct config_generic const char *short_desc; /* short desc. of this variable's purpose */ const char *long_desc; /* long desc. of this variable's purpose */ int flags; /* flag bits, see guc.h */ + enum config_type vartype; /* type of variable */ /* variable fields, initialized at runtime: */ - enum config_type vartype; /* type of variable (set only at startup) */ int status; /* status bits, see below */ GucSource source; /* source of the current actual value */ GucSource reset_source; /* source of the reset_value */ -- cgit v1.2.3