Re: Docs: Clarify that SIGHUP/reload does not update all GUCs for existing sessions

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Docs: Clarify that SIGHUP/reload does not update all GUCs for existing sessions
Дата
Msg-id 89846.1768373231@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Docs: Clarify that SIGHUP/reload does not update all GUCs for existing sessions  (Balkrishna Pandey <balkrishna.pandey@gmail.com>)
Ответы Re: Docs: Clarify that SIGHUP/reload does not update all GUCs for existing sessions
Список pgsql-docs
Balkrishna Pandey <balkrishna.pandey@gmail.com> writes:
> *Proposed wording (illustrative diff):*

> *+ The main server process also propagates this signal to all currently
> running server processes.+ Existing sessions will adopt new values for
> parameters whose context allows changes at reload+ time (for example,
> sighup). Parameters whose context is backend or superuser-backend do not+
> change within an already-started session; changes to those only affect
> subsequently-launched+ sessions.*

This seems to me to be getting way too far into the implementation weeds,
while still failing to cover everything.  For example, it's also true
that a SET within the session will override postgresql.conf.

The main intent of the code is that SIGHUP will propagate a
postgresql.conf change into an existing session if that session
had been using the previous value from postgresql.conf.  If its
source for the active value was something else, nothing changes.
You can argue about whether "backend"-context GUCs are an exception
to that rule, but I think our statement in the docs should be
about at that level of complexity.

            regards, tom lane



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