]> granicus.if.org Git - postgresql/commit
Document incompatibility of comparison expressions with VARIADIC array arguments
authorAndrew Dunstan <andrew@dunslane.net>
Mon, 11 Mar 2019 22:14:05 +0000 (18:14 -0400)
committerAndrew Dunstan <andrew@dunslane.net>
Mon, 11 Mar 2019 22:14:05 +0000 (18:14 -0400)
commit5e74a427854fa17babfbb0e22c4ca95e4f48f2fe
tree8626b2ffa62d12ff68097558ab311b7c4d28bf64
parent32b8f0b0332ef96c67f06ded4d458a3ce12fe2ef
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
doc/src/sgml/func.sgml