Parse pg_hba.conf in postmaster, instead of once in each backend for
authorMagnus Hagander <magnus@hagander.net>
Mon, 15 Sep 2008 12:32:57 +0000 (12:32 +0000)
committerMagnus Hagander <magnus@hagander.net>
Mon, 15 Sep 2008 12:32:57 +0000 (12:32 +0000)
commita304af40e61ce48c7de3c7a191e43fc411f5ab49
tree910ebaeb9d2e07efa0fe448effd9a1c898430c75
parentd4d76d4a614b99df66fd0d39d4f1ea617d23c804
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.
doc/src/sgml/client-auth.sgml
src/backend/libpq/auth.c
src/backend/libpq/crypt.c
src/backend/libpq/hba.c
src/backend/libpq/pg_ident.conf.sample
src/backend/postmaster/postmaster.c
src/include/libpq/hba.h
src/include/libpq/libpq-be.h