Re: [PATCH] Add array_reverse() function

From: "Joel Jacobson" <joel(at)compiler(dot)org>
To: pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Re: [PATCH] Add array_reverse() function
Date: 2024-10-21 14:37:52
Message-ID: d3adaa8b-8400-47fb-ae7e-c8423cc977fd@app.fastmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Mon, Oct 21, 2024, at 11:06, Aleksander Alekseev wrote:
> Hi,
>
> Recently I wanted to call array_reverse() and discovered that we still
> don't have it. I'm not the first one who encountered this limitation.
> array_reverse() was requested at least since 2009 [1] and the
> workaround on PostgreSQL Wiki is dated 2010 [2].
>
> The proposed patch adds this function. Only the first dimension of the
> array is reversed, for consistency with the existing functions such as
> array_shuffle() [3].

+1

I've needed this many times.

/Joel

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message vignesh C 2024-10-21 15:09:53 Re: Make default subscription streaming option as Parallel
Previous Message jian he 2024-10-21 14:35:00 Re: New "raw" COPY format