Re: Use "samehost" by default in pg_hba.conf? - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Use "samehost" by default in pg_hba.conf?
Date
Msg-id 8079.1254366973@sss.pgh.pa.us
Whole thread Raw
In response to Re: Use "samehost" by default in pg_hba.conf?  (Stephen Frost <sfrost@snowman.net>)
Responses Re: Use "samehost" by default in pg_hba.conf?  (Stephen Frost <sfrost@snowman.net>)
List pgsql-hackers
Stephen Frost <sfrost@snowman.net> writes:
> I'm not sure if it out-ranks the advantages of the change for buildfarm
> support, but the above change isn't actually without any disadvantage.
> Specifically, not every auth mechanism that works with -h machine_name
> works with -h localhost, but the first record in pg_hba which is matched
> is used.  I could have:

> host    all         all         127.0.0.1/32          @authmethod@
> host    all         all         A.B.C.D/32            @authmethod2@

If you've got any such thing, you've got a *nondefault* pg_hba.conf
file.  Or are you opining that people who are smart enough to set
that up are too stupid to replace a single "samehost" entry with
the two entries they need?
        regards, tom lane


pgsql-hackers by date:

Previous
From: KaiGai Kohei
Date:
Subject: Re: [PATCH] Reworks for Access Control facilities (r2311)
Next
From: Stephen Frost
Date:
Subject: Re: [PATCH] Reworks for Access Control facilities (r2311)