Fix pg_pwd caching mechanism, which was broken by changes to fork
Tom Lane <tgl@sss.pgh.pa.us>
Fix pg_pwd caching mechanism, which was broken by changes to fork postmaster children before client auth step. Postmaster now rereads pg_pwd on receipt of SIGHUP, the same way that pg_hba.conf is handled. No cycles need be expended to validate password cache validity during connection startup.
Files
| Path | Change | +/− |
|---|---|---|
| doc/src/sgml/client-auth.sgml | modified | +54 −14 |
| doc/src/sgml/runtime.sgml | modified | +5 −3 |
| src/backend/commands/user.c | modified | +10 −17 |
| src/backend/libpq/crypt.c | modified | +93 −91 |
| src/backend/postmaster/postmaster.c | modified | +8 −3 |
| src/include/libpq/crypt.h | modified | +13 −14 |