Re: host name support in pg_hba.conf - Mailing list pgsql-hackers

From Greg Stark
Subject Re: host name support in pg_hba.conf
Date
Msg-id AANLkTikXVAyv5XUhPqxzsNO7czUz+m2i7hqhLT09aYe+@mail.gmail.com
Whole thread Raw
In response to Re: host name support in pg_hba.conf  (Magnus Hagander <magnus@hagander.net>)
List pgsql-hackers
On Wed, Oct 6, 2010 at 6:21 AM, Magnus Hagander <magnus@hagander.net> wrote:
> It's not common, but i've certainly come across a number of virtual
> machines where localhost resolves (through /etc/hosts) to the machines
> "real" IP rather than 127.0.01, because 127.0.0.1 simply doesn't
> exist.

It's perfectly fine for localhost to resolve to the machine's external
ip address. It would be weird for it to resolve to some other host's
ip address like the vm's host machine. But having 127.0.0.1 not exist
would be positively broken. All kinds of things wouldn't work. Are you
sure about that part?


-- 
greg


pgsql-hackers by date:

Previous
From: Simon Riggs
Date:
Subject: Re: Issues with Quorum Commit
Next
From: Robert Haas
Date:
Subject: Re: security hook on table creation