Re: [HACKERS] PQhost may return socket dir for network connection

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [HACKERS] PQhost may return socket dir for network connection
Дата
Msg-id 15728.1493654814@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: [HACKERS] PQhost may return socket dir for network connection  (Robert Haas <robertmhaas@gmail.com>)
Ответы Re: [HACKERS] PQhost may return socket dir for network connection  (Robert Haas <robertmhaas@gmail.com>)
Список pgsql-hackers
Robert Haas <robertmhaas@gmail.com> writes:
> On Fri, Apr 28, 2017 at 3:43 AM, Kyotaro HORIGUCHI
> <horiguchi.kyotaro@lab.ntt.co.jp> wrote:
>> As the subject, PQhost() seems to be forgeting about the case
>> where only hostaddr is specified in a connection string.

> I suspect that may have been intentional.

See commits 11003eb55 and 40cb21f70 for recent history in this area.
Further back there's more history around host vs. hostaddr.  We've
gone back and forth on this in the past, including an ultimately
reverted attempt to add "PQhostaddr()", so it'd be a good idea to
study those past threads before proposing a change here.

Having said that, the behavior stated in $subject does sound wrong.
        regards, tom lane



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

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: [HACKERS] scram and \password
Следующее
От: Andres Freund
Дата:
Сообщение: Re: [HACKERS] snapbuild woes