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

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Balkrishna Pandey <balkrishna(dot)pandey(at)gmail(dot)com>
Cc: pgsql-docs(at)lists(dot)postgresql(dot)org
Subject: Re: Docs: Clarify that SIGHUP/reload does not update all GUCs for existing sessions
Date: 2026-01-14 06:47:11
Message-ID: 89846.1768373231@sss.pgh.pa.us
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-docs

Balkrishna Pandey <balkrishna(dot)pandey(at)gmail(dot)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

In response to

Responses

Browse pgsql-docs by date

  From Date Subject
Next Message Balkrishna Pandey 2026-01-14 06:57:54 Re: Docs: Clarify that SIGHUP/reload does not update all GUCs for existing sessions
Previous Message Andreas Karlsson 2026-01-14 06:43:35 Re: Parallelizing startup with many databases