Re: BUG #1110: psql -h localhost consults the nameservice - Mailing list pgsql-bugs

From Enke, Michael
Subject Re: BUG #1110: psql -h localhost consults the nameservice
Date
Msg-id 406B00D9.7000609@wincor-nixdorf.com
Whole thread Raw
In response to BUG #1110: psql -h localhost consults the nameservice  ("PostgreSQL Bugs List" <pgsql-bugs@postgresql.org>)
List pgsql-bugs
Tom Lane wrote:
> "PostgreSQL Bugs List" <pgsql-bugs@postgresql.org> writes:
>
>>If I call "psql -h localhost" it is very slow
>>compared to "psql -h 127.0.0.1" since for "localhost"
>>the nameservice is consulted.
>
>
> This is not a bug; it's supposed to do that.  If you don't like it,
> reconfigure your name service (see /etc/nsswitch.conf and /etc/resolv.conf).
>
>             regards, tom lane


Ok, I'm not sure if this is a bug or not.
But definitively for postgresql version 7.3.3 on RedHat Linux,
for "localhost" it was not contacting the name service.
This difference I noticed.

Regards,
Michael

pgsql-bugs by date:

Previous
From: "Johan Duflost"
Date:
Subject: Bug #641: LIBPQ Linking with the static library on the WIN32 platform fails connections with "unknown host name".
Next
From: Tom Lane
Date:
Subject: Re: memory corruption bug