]> granicus.if.org Git - postgresql/commit
Fix pg_hba.conf matching so that replication connections only match records
authorTom Lane <tgl@sss.pgh.pa.us>
Wed, 21 Apr 2010 03:32:53 +0000 (03:32 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 21 Apr 2010 03:32:53 +0000 (03:32 +0000)
commita2c3931a244b67115a0eac1ee5fde9eb7cb4e42c
tree29ce8f4c20563cde96048a4e562b2456a159aa28
parenta3c6d105752c28dbd19d0558733a2157e6ab55e0
Fix pg_hba.conf matching so that replication connections only match records
with database = replication.  The previous coding would allow them to match
ordinary records too, but that seems like a recipe for security breaches.
Improve the messages associated with no-such-pg_hba.conf entry to report
replication connections as such, since that's now a critical aspect of
whether the connection matches.  Make some cursory improvements in the related
documentation, too.
doc/src/sgml/client-auth.sgml
doc/src/sgml/high-availability.sgml
doc/src/sgml/recovery-config.sgml
src/backend/libpq/auth.c
src/backend/libpq/hba.c
src/backend/replication/libpqwalreceiver/libpqwalreceiver.c