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

Поиск
Список
Период
Сортировка
От Enke, Michael
Тема Re: BUG #1110: psql -h localhost consults the nameservice
Дата
Msg-id 406B00D9.7000609@wincor-nixdorf.com
обсуждение исходный текст
Ответ на BUG #1110: psql -h localhost consults the nameservice  ("PostgreSQL Bugs List" <pgsql-bugs@postgresql.org>)
Список pgsql-bugs
Tom Lane wrote:
> "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


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

В списке pgsql-bugs по дате отправления:

Предыдущее
От: "Johan Duflost"
Дата:
Сообщение: Bug #641: LIBPQ Linking with the static library on the WIN32 platform fails connections with "unknown host name".
Следующее
От: Tom Lane
Дата:
Сообщение: Re: memory corruption bug