On Thu, 2020-03-12 at 06:34 +0000, PG Doc comments form wrote:
> There is mention to macro PG_ARGNULL_xxx() which I cannot locate. Aren't you
> talking of PG_ARGISNULL(n) ?

Indeed.

Here is a patch for that.

Yours,
Laurenz Albe
diff --git a/doc/src/sgml/xfunc.sgml b/doc/src/sgml/xfunc.sgml
index d9afd3be4d..7c3cfb0115 100644
--- a/doc/src/sgml/xfunc.sgml
+++ b/doc/src/sgml/xfunc.sgml
@@ -2241,7 +2241,7 @@ PG_FUNCTION_INFO_V1(funcname);
      <function>PG_GETARG_<replaceable>xxx</replaceable>()</function>
      macro that corresponds to the argument's data type.  In non-strict
      functions there needs to be a previous check about argument null-ness
-     using <function>PG_ARGNULL_<replaceable>xxx</replaceable>()</function>.
+     using <function>PG_ARGISNULL_<replaceable>xxx</replaceable>()</function>.
      The result is returned using a
      <function>PG_RETURN_<replaceable>xxx</replaceable>()</function>
      macro for the return type.

Reply via email to