From: Daniel Gustafsson <dgustafsson@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Copy SSL GUCs into the hosts context
Date: Tue, 06 Oct 2026 11:52:22 +0000
Message-ID: <E1xE3iY-00000000Y0F-36Ha@gemulon.postgresql.org> (raw)
Copy SSL GUCs into the hosts context
When the SSL configuration from postgresql.conf is used, the default
host entry stored pointers to the relevant GUC variables. These
pointers are not guaranteed to survive a failed configuration reload
so copy the values into the hosts memory context.
Author: Zsolt Parragi <zsolt.parragi@percona.com>
Reviewed-by: Daniel Gustafsson <daniel@yesql.se>
Reviewed-by: Rui Zhao <zhaorui126@gmail.com>
Discussion: https://postgr.es/m/A1745424-7110-41E9-B98C-3CED1A034A8F@yesql.se
Backpatch-through: 19
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/fd7e11b92b3a5b94abc11228d41b5f83acd92773
Modified Files
--------------
src/backend/libpq/be-secure-openssl.c | 12 ++++++++----
1 file changed, 8 insertions(+), 4 deletions(-)
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: dgustafsson@postgresql.org
Subject: Re: pgsql: Copy SSL GUCs into the hosts context
In-Reply-To: <E1xE3iY-00000000Y0F-36Ha@gemulon.postgresql.org>
References: <E1xE3iY-00000000Y0F-36Ha@gemulon.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox