Re: Hostnames in pg_hba.conf - Mailing list pgsql-hackers

From Kevin Grittner
Subject Re: Hostnames in pg_hba.conf
Date
Msg-id 4B73CCC4020000250002F189@gw.wicourts.gov
Whole thread Raw
In response to Hostnames in pg_hba.conf  (Bart Samwel <bart@samwel.tk>)
List pgsql-hackers
Bart Samwel <bart@samwel.tk> wrote:
> I've been working on a patch to add hostname support to
> pg_hba.conf.
> At present, I've simply not added caching.
Perhaps you could just recommend using nscd (or similar).
> There was a suggestion on the TODO list on the wiki, which
> basically said that maybe we could use reverse lookup to find
> "the" hostname and then check for that hostname in the list. I
> think that won't work, since IPs can go by many names and may not
> support reverse lookup for some hostnames (/etc/hosts anybody?).
Right.  Any reverse lookup should be, at best, for display in error
messages or logs.  There can be zero to many names for an IP
address.
> Currently, a pg_hba entry lists an IP / netmask combination. I
> would suggest allowing lists of hostnames in the entries, so that
> you can at least mimic the "match multiple hosts by a single
> rule". Any reason not to do this?
I can't see any reason other than code complexity.
-Kevin


pgsql-hackers by date:

Previous
From: Oleg Bartunov
Date:
Subject: Re: knngist patch support
Next
From: Euler Taveira de Oliveira
Date:
Subject: Re: Re: [COMMITTERS] pgsql: Make standby server continuously retry restoring the next WAL