Re: BUG #1110: psql -h localhost consults the nameservice

From: "Enke, Michael" <michael(dot)enke(at)wincor-nixdorf(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #1110: psql -h localhost consults the nameservice
Date: 2004-03-31 17:33:13
Message-ID: 406B00D9.7000609@wincor-nixdorf.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Tom Lane wrote:
> "PostgreSQL Bugs List" <pgsql-bugs(at)postgresql(dot)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

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Victor Sudakov 2004-04-01 06:49:41 Renaming a table leaves orphaned implicit sequences which breaks pg_restore.
Previous Message Alexander S 2004-03-31 08:39:52 bug in 7.4.2, with Handling of Double Quotation Marks