Re: Some questions about the array.

From: Merlin Moncure <mmoncure(at)gmail(dot)com>
To: Teodor Sigaev <teodor(at)sigaev(dot)ru>
Cc: YUriy Zhuravlev <u(dot)zhuravlev(at)postgrespro(dot)ru>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Some questions about the array.
Date: 2015-11-30 14:58:49
Message-ID: CAHyXU0xKCW120S-d+hMmOp3AvGHo+nOd80zcKx1G+CyE7eBhtQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Thu, Nov 26, 2015 at 6:08 AM, Teodor Sigaev <teodor(at)sigaev(dot)ru> wrote:
> YUriy Zhuravlev wrote:
>>
>> On Friday 06 November 2015 12:55:44 you wrote:
>>>
>>> Omitted bounds are common in other languages and would be handy. I
>>> don't think they'd cause any issues with multi-dimensional arrays or
>>> variable start-pos arrays.
>>
>>
>> And yet, what about my patch?
>
> My vote: let us do it, mean, omitting bounds. It simplifies syntax in rather
> popular queries.

+1 useful and intuitive

>> Discussions about ~ and{:} it seems optional.
>
> ~ is allowed as unary operator and therefore such syntax will introduce
> incompatibily/ambiguity.

+1 IMO this line of thinking is a dead end. Better handled via
functions, not syntax

merlin

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Daniel Verite 2015-11-30 15:34:40 Re: [patch] Proposal for \rotate in psql
Previous Message Alvaro Herrera 2015-11-30 14:51:39 Re: Re: In-core regression tests for replication, cascading, archiving, PITR, etc.