Parse pg_hba.conf in postmaster, instead of once in each backend for
Magnus Hagander <magnus@hagander.net>
Parse pg_hba.conf in postmaster, instead of once in each backend for each connection. This makes it possible to catch errors in the pg_hba file when it's being reloaded, instead of silently reloading a broken file and failing only when a user tries to connect. This patch also makes the "sameuser" argument to ident authentication optional.
Files
| Path | Change | +/− |
|---|---|---|
| doc/src/sgml/client-auth.sgml | modified | +8 −10 |
| src/backend/libpq/auth.c | modified | +13 −13 |
| src/backend/libpq/crypt.c | modified | +4 −4 |
| src/backend/libpq/hba.c | modified | +319 −223 |
| src/backend/libpq/pg_ident.conf.sample | modified | +1 −2 |
| src/backend/postmaster/postmaster.c | modified | +23 −4 |
| src/include/libpq/hba.h | modified | +24 −2 |
| src/include/libpq/libpq-be.h | modified | +2 −3 |