> On 12 Nov 2025, at 09:46, Sergey Tatarintsev <[email protected]> 
> 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



Reply via email to