Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vfuez-0060og-0y for pgsql-docs@arkaria.postgresql.org; Wed, 14 Jan 2026 06:47:17 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vfuey-008LJU-1j for pgsql-docs@arkaria.postgresql.org; Wed, 14 Jan 2026 06:47:16 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vfuey-008LJL-0x for pgsql-docs@lists.postgresql.org; Wed, 14 Jan 2026 06:47:16 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vfuev-000KcP-0g for pgsql-docs@lists.postgresql.org; Wed, 14 Jan 2026 06:47:15 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 60E6lB7S089847; Wed, 14 Jan 2026 01:47:11 -0500 From: Tom Lane To: Balkrishna Pandey cc: pgsql-docs@lists.postgresql.org Subject: Re: Docs: Clarify that SIGHUP/reload does not update all GUCs for existing sessions In-reply-to: References: Comments: In-reply-to Balkrishna Pandey message dated "Wed, 14 Jan 2026 08:50:31 +0530" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <89845.1768373231.1@sss.pgh.pa.us> Date: Wed, 14 Jan 2026 01:47:11 -0500 Message-ID: <89846.1768373231@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Balkrishna Pandey 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