Search Postgresql Archives

Re: array_reverse()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Nov 2, 2009 at 1:49 AM, Craig Ringer
<craig@xxxxxxxxxxxxxxxxxxxxx> 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

-- 
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux