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
Views: Raw Message | Whole Thread | Download mbox | Resend email
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

Browse pgsql-bugs by date

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