pgsql: Document incompatibility of comparison expressions with VARIADIC

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Document incompatibility of comparison expressions with VARIADIC
Date: 2019-03-11 22:19:28
Message-ID: E1h3TGa-0000FS-BG@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/5e74a427854fa17babfbb0e22c4ca95e4f48f2fe

Modified Files
--------------
doc/src/sgml/func.sgml | 9 +++++++++
1 file changed, 9 insertions(+)

Browse pgsql-committers by date

  From Date Subject
Next Message Andrew Dunstan 2019-03-11 22:24:41 pgsql: Tweak wording on VARIADIC array doc patch.
Previous Message Andres Freund 2019-03-11 22:07:17 pgsql: Remove spurious return.