• Tom Lane's avatar
    Re-allow SSL passphrase prompt at server start, but not thereafter. · 6667d9a6
    Tom Lane authored
    Leave OpenSSL's default passphrase collection callback in place during
    the first call of secure_initialize() in server startup.  Although that
    doesn't work terribly well in daemon contexts, some people feel we should
    not break it for anyone who was successfully using it before.  We still
    block passphrase demands during SIGHUP, meaning that you can't adjust SSL
    configuration on-the-fly if you used a passphrase, but this is no worse
    than what it was before commit de41869b.  And we block passphrase demands
    during EXEC_BACKEND reloads; that behavior wasn't useful either, but at
    least now it's documented.
    
    Tweak some related log messages for more readability, and avoid issuing
    essentially duplicate messages about reload failure caused by a passphrase.
    
    Discussion: https://postgr.es/m/29982.1483412575@sss.pgh.pa.us
    6667d9a6
postmaster.c 172 KB