Thread: pg_hba.conf use hostname not IP

pg_hba.conf use hostname not IP

From
"Bessette-Halsema, Dominique E."
Date:

Hi

 

Is there a way to use the hostname that is in the /etc/hosts file instead of the IP address in pg_hba.conf

 

Dominique Bessette

SAIC

(858) 826-9182

 

Re: pg_hba.conf use hostname not IP

From
Alvaro Herrera
Date:
Bessette-Halsema, Dominique E. wrote:

> Is there a way to use the hostname that is in the /etc/hosts file
> instead of the IP address in pg_hba.conf

No.  It has been discussed but we've not found a good way in which it
should work.

--
Alvaro Herrera                                http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support