Re: pg_getaddrinfo_all() with hintp=NULL

Поиск
Список
Период
Сортировка
От Daniel Gustafsson
Тема Re: pg_getaddrinfo_all() with hintp=NULL
Дата
Msg-id 7B7A08AB-7B09-4940-80A2-8AFBA402DA4B@yesql.se
обсуждение исходный текст
Ответ на Re: pg_getaddrinfo_all() with hintp=NULL  (Sergey Tatarintsev <s.tatarintsev@postgrespro.ru>)
Ответы Re: pg_getaddrinfo_all() with hintp=NULL
Список pgsql-hackers
> On 12 Nov 2025, at 09:46, Sergey Tatarintsev <s.tatarintsev@postgrespro.ru> wrote:

> I added a comment to pg_freeaddrinfo_all.
> I don't think it made sense to comment that hint_ai_family simply shouldn't be equal to AF_UNIX,
> so I specified that if the original hints were NULL, hint_ai_family should be equal to AF_UNSPEC.

Agreed.

It's still not clear to ne that we should make pg_getaddr_info() mimic the API
of getaddrinfo since it's not a thin wrapper over getaddrinfo.  The alternative
option would be to return EAI_FAIL on a null hint and force the caller to
provide an AF_UNSPEC if that is what is indeed asked for.

--
Daniel Gustafsson




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