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

From David Steele
Subject Re: proposal: variadic argument support for least, greatest function
Date
Msg-id 4cad2f09-22d6-379b-8026-9d208c3e7aab@pgmasters.net
Whole thread Raw
In response to Re: proposal: variadic argument support for least, greatest function  (Andrew Dunstan <andrew.dunstan@2ndquadrant.com>)
Responses Re: proposal: variadic argument support for least, greatest function
List pgsql-hackers
On 3/11/19 6:43 PM, Andrew Dunstan wrote:
> 
> On 3/6/19 10:24 AM, Chapman Flack wrote:
>> 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.
>>
> 
> 
> I'm going to mark this as rejected. Here's a possible doc patch

+1

-- 
-David
david@pgmasters.net


pgsql-hackers by date:

Previous
From: ilmari@ilmari.org (Dagfinn Ilmari Mannsåker)
Date:
Subject: Re: pgbench MAX_ARGS
Next
From: Andrew Dunstan
Date:
Subject: Re: pgbench MAX_ARGS