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

From Tom Lane
Subject Re: BUG #1110: psql -h localhost consults the nameservice
Date
Msg-id 23955.1079707877@sss.pgh.pa.us
Whole thread Raw
In response to BUG #1110: psql -h localhost consults the nameservice  ("PostgreSQL Bugs List" <pgsql-bugs@postgresql.org>)
List pgsql-bugs
"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

pgsql-bugs by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: BUG #1110: psql -h localhost consults the nameservice
Next
From: Tom Lane
Date:
Subject: Re: PostgreSQL & Red Hat AS 2.1