From: Teodor Sigaev <teodor@sigaev.ru>
To: YUriy Zhuravlev <u.zhuravlev@postgrespro.ru>
To: pgsql-hackers@postgresql.org
Subject: Re: Some questions about the array.
Date: Tue, 01 Dec 2015 15:30:47 +0300
Message-ID: <565D92F7.5000505@sigaev.ru> (raw)
In-Reply-To: <2110708.mPfsb934rA@dinodell>
References: <2987745.PueTkqGxbO@dinodell>
<1885247.qWD6L4eZuE@dinodell>
<56586767.6040205@sigaev.ru>
<2110708.mPfsb934rA@dinodell>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>
> On Friday 27 November 2015 17:23:35 Teodor Sigaev wrote:
>> 1
>> Documentation isn't very informative
> Added example with different results.
Perfect
>> 2
>> Seems, error messages are too inconsistent. If you forbid omitting bound in
>> assigment then if all cases error message should be the same or close.
> Done. Skipping lower boundary is no longer an error.
>
> Thank you for your review.
Much better, but:
# create table xxx (a int[]);
# update xxx set a[2:] = '{1,2}';
UPDATE 0
# insert into xxx values ('{1,2,3,3,4,4,5}');
INSERT 0 1
# update xxx set a[2:] = '{1,2}';
ERROR: cannot determine upper index for empty array
As I understand, update should fail with any array, so, first update should fail
too. Am I right?
--
Teodor Sigaev E-mail: teodor@sigaev.ru
WWW: http://www.sigaev.ru/
--
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: teodor@sigaev.ru, u.zhuravlev@postgrespro.ru
Subject: Re: Some questions about the array.
In-Reply-To: <565D92F7.5000505@sigaev.ru>
References: <2987745.PueTkqGxbO@dinodell> <1885247.qWD6L4eZuE@dinodell> <56586767.6040205@sigaev.ru> <2110708.mPfsb934rA@dinodell> <565D92F7.5000505@sigaev.ru>
* 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