summaryrefslogtreecommitdiff
path: root/doc/src
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2010-02-14 00:48:20 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2010-02-14 00:48:20 +0000
commit9908950f1131283d27ac2d195d2607b7f5b36d61 (patch)
tree353c472c6f0974b25a657f321ed84e030b84a249 /doc/src
parent45c17a7ad52fdb1b281954c475b294281bd2612e (diff)
Document the behavior of STRICT VARIADIC functions.
Diffstat (limited to 'doc/src')
-rw-r--r--doc/src/sgml/ref/create_function.sgml9
1 files changed, 8 insertions, 1 deletions
diff --git a/doc/src/sgml/ref/create_function.sgml b/doc/src/sgml/ref/create_function.sgml
index ce6141107a7..a836d808c11 100644
--- a/doc/src/sgml/ref/create_function.sgml
+++ b/doc/src/sgml/ref/create_function.sgml
@@ -1,5 +1,5 @@
<!--
-$PostgreSQL: pgsql/doc/src/sgml/ref/create_function.sgml,v 1.84.2.2 2009/10/02 18:13:10 tgl Exp $
+$PostgreSQL: pgsql/doc/src/sgml/ref/create_function.sgml,v 1.84.2.3 2010/02/14 00:48:20 tgl Exp $
-->
<refentry id="SQL-CREATEFUNCTION">
@@ -570,6 +570,13 @@ CREATE FUNCTION foo(int, int default 42) ...
to replace it (this includes being a member of the owning role).
</para>
+ <para>
+ If a function is declared <literal>STRICT</> with a <literal>VARIADIC</>
+ argument, the strictness check tests that the variadic array <emphasis>as
+ a whole</> is non-null. The function will still be called if the
+ array has non-null elements.
+ </para>
+
</refsect1>
<refsect1 id="sql-createfunction-examples">