| From: | Sergey Tatarintsev <s(dot)tatarintsev(at)postgrespro(dot)ru> |
|---|---|
| To: | "pgsql-hackers(at)lists(dot)postgresql(dot)org" <pgsql-hackers(at)lists(dot)postgresql(dot)org> |
| Subject: | pg_getaddrinfo_all() with hintp=NULL |
| Date: | 2025-11-10 05:14:57 |
| Message-ID: | 1e5efc94-407e-40b8-8b10-4d25f823c6d7@postgrespro.ru |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | 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.
--
With best regards,
Sergey Tatarintsev,
PostgresPro
| Attachment | Content-Type | Size |
|---|---|---|
| v1-0001-Ability-to-pass-NULL-as-a-hintp-to-pg_getaddrinfo.patch | text/x-patch | 877 bytes |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Fujii Masao | 2025-11-10 05:15:20 | Re: Add MERGE and VALUES statements to tab completion for PREPARE |
| Previous Message | Alena Vinter | 2025-11-10 05:02:14 | Re: Resetting recovery target parameters in pg_createsubscriber |