pgsql: Copy SSL GUCs into the hosts context - Mailing list pgsql-committers

From Daniel Gustafsson
Subject pgsql: Copy SSL GUCs into the hosts context
Date
Msg-id E1xE3iY-00000000Y0F-36Ha@gemulon.postgresql.org
Whole thread
List pgsql-committers
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(-)


pgsql-committers by date:

Previous
From: Etsuro Fujita
Date:
Subject: pgsql: postgres_fdw: Fix typo in server version check in AcquireSampleR
Next
From: Daniel Gustafsson
Date:
Subject: pgsql: Keep current ssl_sni setting on SSL config reload failure