From a9aad1b8687f9919cdf7792c3a04ebc7239fe8f1 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Sun, 14 Feb 2010 00:48:12 +0000 Subject: [PATCH] Document the behavior of STRICT VARIADIC functions. --- doc/src/sgml/ref/create_function.sgml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/doc/src/sgml/ref/create_function.sgml b/doc/src/sgml/ref/create_function.sgml index 6d7eb84d8f..41dc4365ce 100644 --- a/doc/src/sgml/ref/create_function.sgml +++ b/doc/src/sgml/ref/create_function.sgml @@ -1,5 +1,5 @@ @@ -585,6 +585,13 @@ CREATE FUNCTION foo(int, int default 42) ... existing calls of the function do not stop working when it is replaced. + + If a function is declared STRICT with a VARIADIC + argument, the strictness check tests that the variadic array as + a whole is non-null. The function will still be called if the + array has non-null elements. + + -- 2.40.0