Re: [INTERFACES] pg_hba.conf

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [INTERFACES] pg_hba.conf
Дата
Msg-id 24430.922666088@sss.pgh.pa.us
обсуждение исходный текст
Ответ на pg_hba.conf  (Antonello De Santis <ua01020@flashnet.it>)
Список pgsql-interfaces
Antonello De Santis <ua01020@flashnet.it> writes:
> My pg_hba.conf file looks like this:
> local        all                    trust
> host         all         192.168.1.0     255.255.255.0    trust

That's OK as far as it goes, and I imagine that connections from your
other machine will work.  But for TCP connections from the same machine
the postmaster is on, you *also* need

host         all         127.0.0.1     255.255.255.255   trust

because local TCP connections usually go via the standard "loopback
address" 127.0.0.1, not via any external IP address your machine may
have.

            regards, tom lane

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

Предыдущее
От: Bob VonMoss
Дата:
Сообщение: Re: [INTERFACES] pg_hba.conf
Следующее
От: Constantin Teodorescu
Дата:
Сообщение: Re: I am facing a difficult problem..