Re: Understanding the behaviour of hostname in psql

Поиск
Список
Период
Сортировка
От Michael Wood
Тема Re: Understanding the behaviour of hostname in psql
Дата
Msg-id AANLkTinXg9n8yvk77CvGq=D4hm7oA=y6fteXqG3d0i4j@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Understanding the behaviour of hostname in psql  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Infinite/Huge loop in query
Список pgsql-novice
Hi

On 4 December 2010 23:52, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> Marco Craveiro <marco.craveiro@gmail.com> writes:
>> i'm looking for some help in understanding the behaviour of hostname
>> in postgres 8.4. apologies if this has been asked before; i googled
>> but to no avail.
>> basically: do i need to supply both the 127.0.1.1 ip address in
>> pg_hba.conf as well as the actual ip address (say 192.168.0.5) in
>> order to be able
>> to always have trusted local connections? and if yes, whats the best
>> way of dealing with DHCP?
>
> Well, a connection to "localhost" will generally go to 127.0.0.1
> (*not* 127.0.1.1 --- that's just a typo from some hand hacking
> of your hosts file, I bet).  [...]

Actually, no.  Some Linux distributions add a line like this to the
hosts file on install:

127.0.1.1 yourhost

I'm not entirely sure what the reason is, but it might involve
allowing for machines with no ethernet etc. interfaces.

--
Michael Wood <esiotrot@gmail.com>

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

Предыдущее
От: "Eugene Dorofeyev"
Дата:
Сообщение: Re: Usage of RETURN QUERY
Следующее
От: Vaduvoiu Tiberiu
Дата:
Сообщение: Infinite/Huge loop in query