Re: 127.0.0.1 or localhost

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: 127.0.0.1 or localhost
Дата
Msg-id 144187.1604099069@sss.pgh.pa.us
обсуждение исходный текст
Ответ на 127.0.0.1 or localhost  (PG Doc comments form <noreply@postgresql.org>)
Список pgsql-docs
PG Doc comments form <noreply@postgresql.org> writes:
> It's not actually a problem, it's a question. pgpass in my case, has two
> lines, one with 127.0.0.1 and another with localhost
> what would be the difference from one to another. ??

AFAIR, the field is matched to how you wrote the hostname in the
connection parameters.

Also, it looks like there's a special case to consider 'localhost'
as matching a Unix-socket connection, if the socket is in the
installation's default socket directory.

            regards, tom lane



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

Предыдущее
От: PG Doc comments form
Дата:
Сообщение: 127.0.0.1 or localhost
Следующее
От: Thomas Munro
Дата:
Сообщение: Re: What does "[backends] should seldom or never need to wait for a write to occur" mean?