pgsql: Support host names in pg_hba.conf

Lists: pgsql-committers
From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Support host names in pg_hba.conf
Date: 2010-10-15 19:57:47
Message-ID: E1P6qPT-0001dl-O5@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-committers

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(-)


From: Fujii Masao <masao(dot)fujii(at)gmail(dot)com>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: pgsql-committers(at)postgresql(dot)org
Subject: Re: pgsql: Support host names in pg_hba.conf
Date: 2010-10-18 06:48:16
Message-ID: AANLkTi=_eRbJE+6LQ9L+Fjdaat6Y4ffFaNxR-zxQYx42@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-committers

On Sat, Oct 16, 2010 at 4:57 AM, Peter Eisentraut <peter_e(at)gmx(dot)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(at)# "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

Attachment Content-Type Size
example_hba_v1.patch application/octet-stream 861 bytes

From: Robert Haas <robertmhaas(at)gmail(dot)com>
To: Fujii Masao <masao(dot)fujii(at)gmail(dot)com>
Cc: Peter Eisentraut <peter_e(at)gmx(dot)net>, pgsql-committers(at)postgresql(dot)org
Subject: Re: pgsql: Support host names in pg_hba.conf
Date: 2010-10-18 16:19:26
Message-ID: AANLkTina2frpd2N1zdMnfQ5Hd8AGesNU7hSgaayTMv=p@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-committers

On Mon, Oct 18, 2010 at 2:48 AM, Fujii Masao <masao(dot)fujii(at)gmail(dot)com> wrote:
> On Sat, Oct 16, 2010 at 4:57 AM, Peter Eisentraut <peter_e(at)gmx(dot)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(at)# "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