public inbox for [email protected]  
help / color / mirror / Atom feed
From: Balkrishna Pandey <[email protected]>
To: [email protected]
Subject: Docs: Clarify that SIGHUP/reload does not update all GUCs for existing sessions
Date: Wed, 14 Jan 2026 08:50:31 +0530
Message-ID: <CAEdRop3fo784VmdeEWc3HXn-_x-tTx6AFXgNh78WGrhKkqvgtw@mail.gmail.com> (raw)

Hello,

While reading the *“Server Configuration”* documentation, I noticed a
potentially misleading statement in:

https://www.postgresql.org/docs/current/runtime-config.html
(Chapter 19 → 19.1.2 “Parameter Interaction via the Configuration File”)

The text says that when the postmaster receives SIGHUP/reload, it
propagates the signal to all server processes “so that existing sessions
also adopt the new values”.

As written, this can be interpreted to mean that any changed parameter in
postgresql.conf will be adopted by already-connected sessions after a
reload. However, many GUCs have context “backend” or “superuser-backend”
and do not change within an already-started session; those changes only
affect subsequently-launched sessions.

*Suggestion*: qualify the sentence to indicate that existing sessions will
pick up changes only for parameters whose context allows it (e.g.,
“sighup”), and that “backend” / “superuser-backend” settings won’t change
for existing sessions.

*Proposed wording (illustrative diff):*

*"*

*- The main server process also propagates this signal to all currently
running server processes,*


*- so that existing sessions also adopt the new values (this will happen
after they complete any- currently-executing client command).*






*+ 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.*

"

Happy to send a formal patch if you would like.


Thanks,
Balkrishna


view thread (4+ messages)  latest in thread

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected], [email protected]
  Subject: Re: Docs: Clarify that SIGHUP/reload does not update all GUCs for existing sessions
  In-Reply-To: <CAEdRop3fo784VmdeEWc3HXn-_x-tTx6AFXgNh78WGrhKkqvgtw@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox