| From: | Daniel Gustafsson <dgustafsson(at)postgresql(dot)org> |
|---|---|
| To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
| Subject: | pgsql: ssl: Remove static var tracking tls_init_hook warnings |
| Date: | 2026-07-29 19:27:35 |
| Message-ID: | E1wp9wF-00000000qIq-1PEd@gemulon.postgresql.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-committers |
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(at)yesql(dot)se>
Reviewed-by: Tristan Partin <tristan(at)partin(dot)io>
Reviewed-by: Andreas Karlsson <andreas(at)proxel(dot)se>
Reviewed-by: Yilin Zhang <jiezhilove(at)126(dot)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(-)
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Daniel Gustafsson | 2026-07-29 19:55:53 | pgsql: doc: Add a note that refint will be removed in v20 |
| Previous Message | Bruce Momjian | 2026-07-29 18:20:56 | pgsql: doc: remove added space within synopsis replaceable tags |