agora inbox for pgsql-committers@postgresql.org  
help / color / mirror / Atom feed
From: Daniel Gustafsson <dgustafsson@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: ssl: Remove static var tracking tls_init_hook warnings
Date: Wed, 29 Jul 2026 19:27:35 +0000
Message-ID: <E1wp9wF-00000000qIq-1PEd@gemulon.postgresql.org> (raw)

ssl: Remove static var tracking tls_init_hook warnings

If the TLS init hook is defined in conjunction with ssl_sni we
issue a warning to help the user re-configure the cluster.  To
avoid drowning the log in warnings, we log only once instead of
once per host.  This removes the static variable tracking the
warning to aid future multithreading efforts.

Author: Daniel Gustafsson <daniel@yesql.se>
Reviewed-by: Tristan Partin <tristan@partin.io>
Reviewed-by: Andreas Karlsson <andreas@proxel.se>
Reviewed-by: Yilin Zhang <jiezhilove@126.com>
Discussion: https://postgr.es/m/68B9881D-DAA8-467D-A251-C96E98E57BA0@yesql.se

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/9e526a14d7cb36c24d6faebf32df31251a97edc9

Modified Files
--------------
src/backend/libpq/be-secure-openssl.c | 29 ++++++++++++++++++++++-------
1 file changed, 22 insertions(+), 7 deletions(-)



Message-ID: <E1wp9wF-00000000qIq-1PEd@gemulon.postgresql.org>
Permalink:  ../E1wp9wF-00000000qIq-1PEd@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1wp9wF-00000000qIq-1PEd@gemulon.postgresql.org

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: pgsql-committers@postgresql.org
  Cc: dgustafsson@postgresql.org, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: ssl: Remove static var tracking tls_init_hook warnings
  In-Reply-To: <E1wp9wF-00000000qIq-1PEd@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 agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox