mirror of
https://github.com/postgres/postgres.git
synced 2025-04-25 21:42:33 +03:00
Document incompatibility of comparison expressions with VARIADIC array arguments
COALESCE, GREATEST and LEAST all look like functions taking variable numbers of arguments, but in fact they are not functions, and so VARIADIC array arguments don't work with them. Add a note to the docs explaining this fact. The consensus is not to try to make this work, but just to document the limitation. Discussion: https://postgr.es/m/CAFj8pRCaAtuXuRtvXf5GmPbAVriUQrNMo7-=TXUFN025S31R_w@mail.gmail.com
This commit is contained in:
parent
32b8f0b033
commit
5e74a42785
@ -12481,6 +12481,15 @@ SELECT setval('foo', 42, false); <lineannotation>Next <function>nextval</func
|
||||
</para>
|
||||
</tip>
|
||||
|
||||
<note>
|
||||
<para>
|
||||
Although <token>COALESCE</token>, <token>GREATEST</token>, and
|
||||
<token>LEAST</token> are syntactically similar to functions, they are
|
||||
not strictly functions, and thus cannot be used with explicit
|
||||
<token>VARIADIC</token> array arguments.
|
||||
</para>
|
||||
</note>
|
||||
|
||||
<sect2 id="functions-case">
|
||||
<title><literal>CASE</literal></title>
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user