From: YUriy Zhuravlev <u.zhuravlev@postgrespro.ru>
To: pgsql-hackers@postgresql.org
Subject: Re: Some questions about the array.
Date: Mon, 09 Nov 2015 15:07:46 +0300
Message-ID: <3236232.FSDW0sV0Jy@dinodell> (raw)
In-Reply-To: <CAFj8pRD50_=a4zqR1qfaM_Z7rQ4JCHm18UkwecB5CLSTtcDTCg@mail.gmail.com>
References: <2987745.PueTkqGxbO@dinodell>
<2140159.HH0D5mDkSl@dinodell>
<CAFj8pRD50_=a4zqR1qfaM_Z7rQ4JCHm18UkwecB5CLSTtcDTCg@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>
On Monday 09 November 2015 12:48:54 you wrote:
> I am sorry - it is looking pretty obscure. Really need this feature?
IMHO yes.
Now for write: array[~2:~-2] you need like:
array[array_lower(array, 1)+3: array_upper(array, 1)-2]
Worse when long names. Besides the extra functions calls.
Thanks.
--
YUriy Zhuravlev
Postgres Professional: http://www.postgrespro.com
The Russian Postgres Company
--
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: u.zhuravlev@postgrespro.ru
Subject: Re: Some questions about the array.
In-Reply-To: <3236232.FSDW0sV0Jy@dinodell>
References: <2987745.PueTkqGxbO@dinodell> <2140159.HH0D5mDkSl@dinodell> <CAFj8pRD50_=a4zqR1qfaM_Z7rQ4JCHm18UkwecB5CLSTtcDTCg@mail.gmail.com> <3236232.FSDW0sV0Jy@dinodell>
* 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