Fix pg_hba.conf matching so that replication connections only match records

Tom Lane <tgl@sss.pgh.pa.us>

Commit: a2c3931a244b67115a0eac1ee5fde9eb7cb4e42c
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2010-04-21T03:32:53Z
Releases: 9.0.0
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.

Files