Re: psql connection via localhost or 127.0.0.1 - Mailing list pgsql-general

From Adrian Klaver
Subject Re: psql connection via localhost or 127.0.0.1
Date
Msg-id 545B913A.1040406@aklaver.com
Whole thread Raw
In response to Re: psql connection via localhost or 127.0.0.1  (John R Pierce <pierce@hogranch.com>)
Responses Re: psql connection via localhost or 127.0.0.1
List pgsql-general
On 11/06/2014 07:00 AM, John R Pierce wrote:
> On 11/6/2014 6:34 AM, Edoardo Panfili wrote:
>>
>> Why localhost is not an alias for 127.0.0.1 ?
>
> grep localhost /etc/hosts
>
> I've seen some weird stuff on some systems.

I have localhost/127.0.0.1  set up correctly on my machine and I see the
same behavior as the OP. I'm pretty sure it is an interaction between
the libpq host/hostaddr code and a .pgpass file. I suspect the OP has a
.pgpass entry for localhost but not 127.0.0.1.

>


--
Adrian Klaver
adrian.klaver@aklaver.com


pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: psql connection via localhost or 127.0.0.1
Next
From: Edoardo Panfili
Date:
Subject: Re: psql connection via localhost or 127.0.0.1