Skip site navigation (1) Skip section navigation (2)

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

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Michael Enke" <michael(dot)enke(at)wincor-nixdorf(dot)com>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #1110: psql -h localhost consults the nameservice
Date: 2004-03-19 14:51:17
Message-ID: 23955.1079707877@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-bugs
"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

In response to

Responses

pgsql-bugs by date

Next:From: Neil ConwayDate: 2004-03-19 15:18:02
Subject: Re: PostgreSQL & Red Hat AS 2.1
Previous:From: Bruce MomjianDate: 2004-03-19 13:28:31
Subject: Re: BUG #1110: psql -h localhost consults the nameservice

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group