From: | Ken Tanzer <ken(dot)tanzer(at)gmail(dot)com> |
---|---|
To: | Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com> |
Cc: | PG-General Mailing List <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: Largest & Smallest Functions |
Date: | 2018-11-08 16:53:19 |
Message-ID: | CAD3a31XqSmCk0nGy=j6dq62eGzDc0ztw-0BR+s2OmZ1oADr5+w@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On Thu, Nov 8, 2018 at 7:01 AM Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
wrote:
> postgres=# select smallest(VARIADIC ARRAY[1,2,3]);
>>> ┌──────────┐
>>> │ smallest │
>>> ╞══════════╡
>>> │ 1 │
>>> └──────────┘
>>> (1 row)
>>>
>>>
>> That's very helpful and good to know. It's too bad that doesn't work with
>> LEAST/GREATEST, which would eliminate the need for extra functions.
>>
>
> I sent a patch to pgsql-hackares that allows VARIADIC argument for
> LEAST/GREATEST
>
>
That's great! Thanks for doing that!
Cheers,
Ken
--
AGENCY Software
A Free Software data system
By and for non-profits
*http://agency-software.org/ <http://agency-software.org/>*
*https://demo.agency-software.org/client
<https://demo.agency-software.org/client>*
ken(dot)tanzer(at)agency-software(dot)org
(253) 245-3801
Subscribe to the mailing list
<agency-general-request(at)lists(dot)sourceforge(dot)net?body=subscribe> to
learn more about AGENCY or
follow the discussion.
From | Date | Subject | |
---|---|---|---|
Next Message | Ron | 2018-11-09 04:05:01 | REINDEX CONCURRENT? |
Previous Message | Pavel Stehule | 2018-11-08 15:00:53 | Re: Largest & Smallest Functions |