pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andrew Dunstan <andrew@dunslane.net>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Document incompatibility of comparison expressions with VARIADIC
Date: Mon, 11 Mar 2019 22:19:28 +0000
Message-ID: <E1h3TGa-0000FS-BG@gemulon.postgresql.org> (raw)

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(+)



Message-ID: <E1h3TGa-0000FS-BG@gemulon.postgresql.org>
Permalink:  ../E1h3TGa-0000FS-BG@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1h3TGa-0000FS-BG@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: andrew@dunslane.net
  Subject: Re: pgsql: Document incompatibility of comparison expressions with VARIADIC
  In-Reply-To: <E1h3TGa-0000FS-BG@gemulon.postgresql.org>
  References: <E1h3TGa-0000FS-BG@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox