Document that pg_getaddrinfo_all does not accept null hints master github/master
authorDaniel Gustafsson <dgustafsson@postgresql.org>
Thu, 13 Nov 2025 15:35:07 +0000 (16:35 +0100)
committerDaniel Gustafsson <dgustafsson@postgresql.org>
Thu, 13 Nov 2025 15:35:07 +0000 (16:35 +0100)
commitd22cc7326ce0fe5033f2c6e3f711047d263c1c86
tree8532c5609aa4f5290bebfb357b6d482ed131dded
parent7dc4fa91413d62c47f41043c0fce0be536f51e13
Document that pg_getaddrinfo_all does not accept null hints

While the underlying getaddrinfo call accepts a null pointer for
the hintp parameter, pg_getaddrinfo_all does not.  Document this
difference with a comment to make it clear.

Author: Daniel Gustafsson <daniel@yesql.se>
Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us>
Reported-by: Sergey Tatarintsev <s.tatarintsev@postgrespro.ru>
Discussion: https://postgr.es/m/1e5efc94-407e-40b8-8b10-4d25f823c6d7@postgrespro.ru
src/common/ip.c