Re: host name support in pg_hba.conf

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: host name support in pg_hba.conf
Дата
Msg-id 1281417978.24957.2.camel@vanquo.pezone.net
обсуждение исходный текст
Ответ на Re: host name support in pg_hba.conf  ("Kevin Grittner" <Kevin.Grittner@wicourts.gov>)
Ответы Re: host name support in pg_hba.conf  (Stephen Frost <sfrost@snowman.net>)
Список pgsql-hackers
On mån, 2010-08-09 at 13:56 -0500, Kevin Grittner wrote:
> Peter Eisentraut <peter_e@gmx.net> wrote:
>  
> > The client's IP address (known from the kernel)
>  
> Some machines have several IP addresses; how is that handled?

A connection comes in over exactly one address.
> > is reverse looked up, which results in a host name.
>  
> Some IP addresses have several host names, including in reverse
> lookup; how is that handled?

This is not possible, or at least the C library APIs don't expose it.
Compare the getnameinfo() and getaddrinfo() man pages, for example.



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

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: host name support in pg_hba.conf
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Re: host name support in pg_hba.conf