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

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: BUG #1110: psql -h localhost consults the nameservice
Дата
Msg-id 23955.1079707877@sss.pgh.pa.us
обсуждение исходный текст
Ответ на BUG #1110: psql -h localhost consults the nameservice  ("PostgreSQL Bugs List" <pgsql-bugs@postgresql.org>)
Список 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 по дате отправления:

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: BUG #1110: psql -h localhost consults the nameservice
Следующее
От: Tom Lane
Дата:
Сообщение: Re: PostgreSQL & Red Hat AS 2.1