diff options
author | Peter Eisentraut <peter@eisentraut.org> | 2025-10-17 10:33:54 +0200 |
---|---|---|
committer | Peter Eisentraut <peter@eisentraut.org> | 2025-10-17 10:33:54 +0200 |
commit | e1a912c86d5205371b043772aa89908f2452cbf0 (patch) | |
tree | 058afd83f6dabee67368802818a4b459046b171c /src/include/utils/guc_tables.h | |
parent | 0a7bde46101697ece7549df29078ff9417347438 (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/include/utils/guc_tables.h')
-rw-r--r-- | src/include/utils/guc_tables.h | 2 |
1 files changed, 1 insertions, 1 deletions
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 */ |