proposal: variadic argument support for least, greatest function

From: Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
To: PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: proposal: variadic argument support for least, greatest function
Date: 2018-11-08 14:59:09
Message-ID: CAFj8pRCaAtuXuRtvXf5GmPbAVriUQrNMo7-=TXUFN025S31R_w@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi

We can pass variadic arguments as a array to any variadic function. But
some our old variadic functions doesn't supports this feature.

We cannot to write

SELECT least(VARIADIC ARRAY[1,2,3]);

Attached patch add this possibility to least, greatest functions.

Regards

Pavel

Attachment Content-Type Size
minmax_variadic.patch text/x-patch 11.2 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2018-11-08 15:00:32 Re: fix psql \conninfo & \connect when using hostaddr
Previous Message Sergei Kornilov 2018-11-08 14:52:39 Re: New function pg_stat_statements_reset_query() to reset statistics of a specific query