Re: array_reverse()

From: Merlin Moncure <mmoncure(at)gmail(dot)com>
To: Craig Ringer <craig(at)postnewspapers(dot)com(dot)au>
Cc: PG-General Mailing List <pgsql-general(at)postgresql(dot)org>
Subject: Re: array_reverse()
Date: 2009-11-02 14:17:38
Message-ID: b42b73150911020617y728e689ch76f2ff56d77aefcf@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Mon, Nov 2, 2009 at 1:49 AM, Craig Ringer
<craig(at)postnewspapers(dot)com(dot)au> wrote:
>
> Hi all
>
> Before I go ahead and try to write a decent quality version: is there
> any chance an array_reverse() function (in C) would be accepted into Pg
> mainline? If not, I probably won't bother cleaning up my current
> awful-hack quality module.
>
> It's a slow operation to perform in SQL or PL/PgSQL even with 8.4's
> array_agg(...) and generate_subscripts(...) and given how many languages
> seem to provide built-in support it seems to be an operation people need
> quite a bit.

IMO, we should have both that and a string reverse() function. I just
bumped into the same problem yesterday and was surprised we didn't
have it already.

merlin

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Grzegorz Jaśkiewicz 2009-11-02 14:19:47 Re: Problem with database performance, Debian 4gb ram ?
Previous Message Grant Masan 2009-11-02 14:16:15 Problem with database performance, Debian 4gb ram ?