pgsql: Refactor GUC set_config_option function: The main reason for

Поиск
Список
Период
Сортировка
От momjian@postgresql.org (Bruce Momjian)
Тема pgsql: Refactor GUC set_config_option function: The main reason for
Дата
Msg-id 20060811200828.CA9BD9FB1E6@postgresql.org
обсуждение исходный текст
Список pgsql-committers
Log Message:
-----------
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

Modified Files:
--------------
    pgsql/src/backend/utils/misc:
        guc-file.l (r1.38 -> r1.39)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/utils/misc/guc-file.l.diff?r1=1.38&r2=1.39)
        guc.c (r1.333 -> r1.334)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/utils/misc/guc.c.diff?r1=1.333&r2=1.334)
    pgsql/src/include/utils:
        guc.h (r1.71 -> r1.72)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/include/utils/guc.h.diff?r1=1.71&r2=1.72)

В списке pgsql-committers по дате отправления:

Предыдущее
От: momjian@postgresql.org (Bruce Momjian)
Дата:
Сообщение: pgsql: plperl: Allow conversion from perl to postgresql array in OUT
Следующее
От: momjian@postgresql.org (Bruce Momjian)
Дата:
Сообщение: pgsql: Allow commenting of variables in postgresql.conf to restore them