pgsql: Support host names in pg_hba.conf
Support host names in pg_hba.conf
Peter Eisentraut, reviewed by KaiGai Kohei and Tom Lane
Branch
------
master
Details
-------
http://git.postgresql.org/gitweb?p=postgresql.git;a=commitdiff;h=6ab42ae36713b1e6f961c37e22f99d3e6267523b
Modified Files
--------------
doc/src/sgml/client-auth.sgml | 118 +++++++++++++++++++++------
src/backend/libpq/hba.c | 147 +++++++++++++++++++++++++++++++---
src/backend/libpq/pg_hba.conf.sample | 25 +++---
src/backend/postmaster/postmaster.c | 2 +
src/include/libpq/hba.h | 1 +
src/include/libpq/libpq-be.h | 4 +
6 files changed, 248 insertions(+), 49 deletions(-)
On Sat, Oct 16, 2010 at 4:57 AM, Peter Eisentraut <peter_e@gmx.net> wrote:
Support host names in pg_hba.conf
-------------
@authcomment@
-# TYPE DATABASE USER CIDR-ADDRESS METHOD
+# TYPE DATABASE USER ADDRESS METHOD
@remove-line-for-nolocal@# "local" is for Unix domain socket connections only
-------------
The example of pg_hba.conf in high-availability.sgml still uses "CIDR-ADDRESS".
Instead "ADDRESS" should be used there? I attached the patch.
Regards,
--
Fujii Masao
NIPPON TELEGRAPH AND TELEPHONE CORPORATION
NTT Open Source Software Center
Attachments:
example_hba_v1.patchapplication/octet-stream; name=example_hba_v1.patchDownload+2-2
On Mon, Oct 18, 2010 at 2:48 AM, Fujii Masao <masao.fujii@gmail.com> wrote:
On Sat, Oct 16, 2010 at 4:57 AM, Peter Eisentraut <peter_e@gmx.net> wrote:
Support host names in pg_hba.conf
-------------
@authcomment@-# TYPE DATABASE USER CIDR-ADDRESS METHOD +# TYPE DATABASE USER ADDRESS METHOD@remove-line-for-nolocal@# "local" is for Unix domain socket connections only
-------------The example of pg_hba.conf in high-availability.sgml still uses "CIDR-ADDRESS".
Instead "ADDRESS" should be used there? I attached the patch.
Committed.
--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company