summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2013-11-06 13:32:30 -0500
committerTom Lane <tgl@sss.pgh.pa.us>2013-11-06 13:32:30 -0500
commit352ab596fa5a8a4ceec6d308ebae34176cc09c13 (patch)
tree1d0eb4b2a89ed3d3922f15ac6e7ec77deab24718 /doc
parent3dd13108ac5f16723d87288c8633f8d347823304 (diff)
Prevent creating window functions with default arguments.
Insertion of default arguments doesn't work for window functions, which is likely to cause a crash at runtime if the implementation code doesn't check the number of actual arguments carefully. It doesn't seem worth working harder than this for pre-9.2 branches.
Diffstat (limited to 'doc')
-rw-r--r--doc/src/sgml/syntax.sgml7
1 files changed, 7 insertions, 0 deletions
diff --git a/doc/src/sgml/syntax.sgml b/doc/src/sgml/syntax.sgml
index 0b1e5c4e2f0..7a94870b649 100644
--- a/doc/src/sgml/syntax.sgml
+++ b/doc/src/sgml/syntax.sgml
@@ -2373,6 +2373,13 @@ SELECT concat_lower_or_upper('Hello', 'World', uppercase := true);
having numerous parameters that have default values, named or mixed
notation can save a great deal of writing and reduce chances for error.
</para>
+
+ <note>
+ <para>
+ Named and mixed call notations can currently be used only with regular
+ functions, not with aggregate functions or window functions.
+ </para>
+ </note>
</sect2>
</sect1>