pg_getaddrinfo_all() with hintp=NULL - Mailing list pgsql-hackers

From Sergey Tatarintsev
Subject pg_getaddrinfo_all() with hintp=NULL
Date
Msg-id 1e5efc94-407e-40b8-8b10-4d25f823c6d7@postgrespro.ru
Whole thread Raw
Responses Re: pg_getaddrinfo_all() with hintp=NULL
List pgsql-hackers

Hi!

I'm trying to use pg_getaddrinfo_all() with NULL hints, but got segfault.

According to man(3) getaddrinfo, hints may be passed as NULL. In this case af_family

is equivalent to AF_UNSPEC. I'm adding a patch to pg_getaddrinfo_all() to make it available by passing hintp as NULL.

p, li { white-space: pre-wrap; }

-- 
With best regards,
Sergey Tatarintsev, 
PostgresPro
Attachment

pgsql-hackers by date:

Previous
From: Alena Vinter
Date:
Subject: Re: Resetting recovery target parameters in pg_createsubscriber
Next
From: Fujii Masao
Date:
Subject: Re: Add MERGE and VALUES statements to tab completion for PREPARE