Refactor GUC set_config_option function:
authorBruce Momjian <bruce@momjian.us>
Fri, 11 Aug 2006 20:08:28 +0000 (20:08 +0000)
committerBruce Momjian <bruce@momjian.us>
Fri, 11 Aug 2006 20:08:28 +0000 (20:08 +0000)
commit353aad82d3e83be006e7844dcbd692f3b0b84fc1
tree12b5292024b92fe8d6dbf9596fb7c03de60f787a
parent87d2da038fe8ae33688807a4c1e5d7ac53741f5e
Refactor GUC set_config_option function:

The main reason for refactoring was that set_config_option() was too
overloaded function and its behavior did not consistent. Old version of
set_config_function hides some messages. For example if you type:

tcp_port = 5432.1

then old implementation ignore this error without any message to log
file in the signal context (configuration reload). Main problem was that
semantic analysis of postgresql.conf is not perform in the
ProcessConfigFile function, but in the set_config_options *after*
context check. This skipped check for variables with PG_POSTMASTER
context. There was request from Joachim Wieland to add more messages
about ignored changes in the config file as well.

Zdenek Kotala
src/backend/utils/misc/guc-file.l
src/backend/utils/misc/guc.c
src/include/utils/guc.h