postgresql/src/backend
Tom Lane de41869b64 Allow SSL configuration to be updated at SIGHUP.
It is no longer necessary to restart the server to enable, disable,
or reconfigure SSL.  Instead, we just create a new SSL_CTX struct
(by re-reading all relevant files) whenever we get SIGHUP.  Testing
shows that this is fast enough that it shouldn't be a problem.

In conjunction with that, downgrade the logic that complains about
pg_hba.conf "hostssl" lines when SSL isn't active: now that's just
a warning condition not an error.

An issue that still needs to be addressed is what shall we do with
passphrase-protected server keys?  As this stands, the server would
demand the passphrase again on every SIGHUP, which is certainly
impractical.  But the case was only barely supported before, so that
does not seem a sufficient reason to hold up committing this patch.

Andreas Karlsson, reviewed by Michael Banck and Michael Paquier

Discussion: https://postgr.es/m/556A6E8A.9030400@proxel.se
2017-01-02 21:37:12 -05:00
..
access Remove triggerable Assert in hashname(). 2016-12-26 14:58:02 -05:00
bootstrap Support condition variables. 2016-11-22 14:27:11 -05:00
catalog Make more use of RoleSpec struct 2016-12-29 10:49:39 -05:00
commands Fix typo in comment 2016-12-29 11:27:41 -05:00
executor Remove unnecessary casts of makeNode() result 2016-12-23 13:17:20 -05:00
foreign Remove GetUserMappingId() and GetUserMappingById(). 2016-07-22 11:32:23 -04:00
lib Permit dump/reload of not-too-large >1GB tuples 2016-12-02 00:34:01 -03:00
libpq Allow SSL configuration to be updated at SIGHUP. 2017-01-02 21:37:12 -05:00
main Remove barrier.h 2016-11-22 20:28:24 -05:00
nodes Replace enum InhOption with simple boolean. 2016-12-23 13:35:18 -05:00
optimizer Refactor merge path generation code. 2016-12-21 09:45:50 -05:00
parser Make more use of RoleSpec struct 2016-12-29 10:49:39 -05:00
po Translation updates 2016-08-08 11:08:00 -04:00
port Make the different Unix-y semaphore implementations ABI-compatible. 2016-12-12 13:32:10 -05:00
postmaster Allow SSL configuration to be updated at SIGHUP. 2017-01-02 21:37:12 -05:00
regex Make locale-dependent regex character classes work for large char codes. 2016-09-05 17:06:29 -04:00
replication Remove unnecessary casts of makeNode() result 2016-12-23 13:17:20 -05:00
rewrite Remove unnecessary casts of makeNode() result 2016-12-23 13:17:20 -05:00
snowball Update copyright for 2016 2016-01-02 13:33:40 -05:00
storage Skip checkpoints, archiving on idle systems. 2016-12-22 11:31:50 -08:00
tcop Use TSConfigRelationId in AlterTSConfiguration() 2016-12-22 17:08:43 -05:00
tsearch Improve documentation around TS_execute(). 2016-12-16 11:50:32 -05:00
utils Allow SSL configuration to be updated at SIGHUP. 2017-01-02 21:37:12 -05:00
.gitignore Add .gitignore entries for AIX-specific intermediate build artifacts. 2015-07-08 20:44:22 -04:00
Makefile Straighten out some whitespace 2016-11-29 15:08:14 -05:00
common.mk Remove maintainer-check target, fold into normal build 2013-10-10 20:11:56 -04:00
nls.mk Remove trailing slashes from directories in find command 2015-09-18 22:06:54 -04:00