From: Jim Nasby <Jim.Nasby@BlueTreble.com>
To: Craig Ringer <craig@2ndquadrant.com>
To: Robert Haas <robertmhaas@gmail.com>
Cc: YUriy Zhuravlev <u.zhuravlev@postgrespro.ru>
Cc: pgsql-hackers@postgresql.org <pgsql-hackers@postgresql.org>
Subject: Re: Some questions about the array.
Date: Fri, 6 Nov 2015 20:44:45 -0600
Message-ID: <563D659D.2020708@BlueTreble.com> (raw)
In-Reply-To: <CAMsr+YEBNQ304w+wwWev8mi_Ag6SoyBQiz8zRtVUu3OqzbHExQ@mail.gmail.com>
References: <2987745.PueTkqGxbO@dinodell>
<1885247.qWD6L4eZuE@dinodell>
<2141713.cEAioyrXoH@dinodell>
<CA+TgmoYP-3fGBxD1CreAgrSiT17mE+gr_+8=09Gf2rGcgpFpbQ@mail.gmail.com>
<CAMsr+YEBNQ304w+wwWev8mi_Ag6SoyBQiz8zRtVUu3OqzbHExQ@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>
On 11/5/15 10:55 PM, Craig Ringer 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.
+1
> I'd love negative indexes, but the variable-array-start (mis)feature
> means we can't have those. I wouldn't shed a tear if
> variable-start-position arrays were deprecated and removed, but that's
> a multi-year process, and I'm not convinced negative indexes justify
> it even though the moveable array start pos feature seems little-used.
I'm all for ditching variable start, full stop.
> Since the start-pos is recorded in the array, I wonder if it's worth
> supporting negative indexing for arrays with the default 1-indexed
> element numbering, and just ERRORing for others. Does anyone really
> use anything else?
I'd prefer that over using something like ~.
--
Jim Nasby, Data Architect, Blue Treble Consulting, Austin TX
Experts in Analytics, Data Architecture and PostgreSQL
Data in Trouble? Get it in Treble! http://BlueTreble.com
--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-hackers@postgresql.org
Cc: Jim.Nasby@BlueTreble.com, craig@2ndquadrant.com, robertmhaas@gmail.com, u.zhuravlev@postgrespro.ru
Subject: Re: Some questions about the array.
In-Reply-To: <563D659D.2020708@BlueTreble.com>
References: <2987745.PueTkqGxbO@dinodell> <1885247.qWD6L4eZuE@dinodell> <2141713.cEAioyrXoH@dinodell> <CA+TgmoYP-3fGBxD1CreAgrSiT17mE+gr_+8=09Gf2rGcgpFpbQ@mail.gmail.com> <CAMsr+YEBNQ304w+wwWev8mi_Ag6SoyBQiz8zRtVUu3OqzbHExQ@mail.gmail.com> <563D659D.2020708@BlueTreble.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox