Re: proposal: variadic argument support for least, greatest function - Mailing list pgsql-hackers

From Pavel Stehule
Subject Re: proposal: variadic argument support for least, greatest function
Date
Msg-id CAFj8pRDS8WQCuH+1k02fVvBra7zDfrjsvCAX-kBH89EaXfSEOA@mail.gmail.com
Whole thread Raw
In response to Re: proposal: variadic argument support for least, greatest function  (Chapman Flack <chap@anastigmatix.net>)
List pgsql-hackers


st 6. 3. 2019 v 16:24 odesílatel Chapman Flack <chap@anastigmatix.net> napsal:
On 3/6/19 10:12 AM, Andrew Dunstan wrote:

> Having reviewed the thread, I'm with Andres and Tom. Maybe though we
> should have a note somewhere to the effect that you can't use VARIADIC
> with these.

Perhaps such a note belongs hoisted into the functions-conditional
section of the manual, making a general observation that these things
are conditional *expressions* that may resemble functions, but in
particular, COALESCE, GREATEST, and LEAST cannot be called with
keyword VARIADIC and an array argument, as they could if they were
ordinary functions.

+1

Pavel


Regards,
-Chap

pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: patch to allow disable of WAL recycling
Next
From: Andres Freund
Date:
Subject: Re: Online verification of checksums