postgresql/src/backend/utils
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
..
adt Make more use of RoleSpec struct 2016-12-29 10:49:39 -05:00
cache Add pg_sequence system catalog 2016-12-20 08:28:18 -05:00
error Fix unsafe assumption that struct timeval.tv_sec is a "long". 2016-12-06 19:52:34 -05:00
fmgr Simplify code by getting rid of SPI_push, SPI_pop, SPI_restore_connection. 2016-11-08 17:39:57 -05:00
hash Add macros to make AllocSetContextCreate() calls simpler and safer. 2016-08-27 17:50:38 -04:00
init Reduce the default for max_worker_processes back to 8. 2016-12-05 10:53:21 -05:00
mb Make all unicode perl scripts to use strict, rearrange logic for clarity. 2016-11-30 18:06:34 +02:00
misc Allow SSL configuration to be updated at SIGHUP. 2017-01-02 21:37:12 -05:00
mmgr Simplify LWLock tranche machinery by removing array_base/array_stride. 2016-12-16 11:29:23 -05:00
resowner Improve hash index bucket split behavior. 2016-11-30 15:39:21 -05:00
sort Simplify tape block format. 2016-12-22 18:45:00 +02:00
time Account for catalog snapshot in PGXACT->xmin updates. 2016-11-15 15:55:35 -05:00
.gitignore Avoid maintaining three separate copies of the error codes list. 2011-02-03 22:32:49 -05:00
Gen_dummy_probes.pl Finish pgindent run for 9.6: Perl files. 2016-06-12 04:19:56 -04:00
Gen_dummy_probes.sed Update copyright for 2016 2016-01-02 13:33:40 -05:00
Gen_fmgrtab.pl Update copyright for 2016 2016-01-02 13:33:40 -05:00
Makefile Make handling of errcodes.h more consistent with other generated headers. 2011-02-04 09:29:10 -05:00
errcodes.txt Relax transactional restrictions on ALTER TYPE ... ADD VALUE. 2016-09-05 12:59:55 -04:00
generate-errcodes.pl Update copyright for 2016 2016-01-02 13:33:40 -05:00
probes.d Simplify LWLock tranche machinery by removing array_base/array_stride. 2016-12-16 11:29:23 -05:00