Re: Some questions about the array.

From: Merlin Moncure <mmoncure(at)gmail(dot)com>
To: YUriy Zhuravlev <u(dot)zhuravlev(at)postgrespro(dot)ru>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Some questions about the array.
Date: 2015-12-01 14:38:21
Message-ID: CAHyXU0zNHQ1m+E=+T-AJAZsb3PDFqF22tjz6FtD_FZULq1rFuA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Mon, Nov 30, 2015 at 3:05 PM, YUriy Zhuravlev
<u(dot)zhuravlev(at)postgrespro(dot)ru> wrote:
> On Monday 30 November 2015 08:58:49 you wrote:
>> +1 IMO this line of thinking is a dead end. Better handled via
>> functions, not syntax
>
> Maybe then add array_pyslice(start, end) when start is 0 and with negative
> indexes? Only for 1D array.
> What do you think?

TBH, I'm not really thrilled about the concept in general; it (zero
based indexing support) doesn't meet the standard of necessity for
adding to the core API and as stated it's much to magical. If it was
me, I'd be making a pgxn extension for zero based arrays that are zero
based; it could be 100% SQL wrappers so I'd be pretty easy to install
for interested parties.

merlin

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message YUriy Zhuravlev 2015-12-01 14:38:34 Re: Some questions about the array.
Previous Message Alexander Korotkov 2015-12-01 14:27:10 Re: Use pg_rewind when target timeline was switched