Re: BUG #2913: Subscript on multidimensional array yields no value

From: Bruce Momjian <bruce(at)momjian(dot)us>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Roman Nowak <roman_nowak(at)poczta(dot)onet(dot)pl>, pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #2913: Subscript on multidimensional array yields no value
Date: 2007-01-31 02:00:28
Message-ID: 200701310200.l0V20Sd08345@momjian.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs pgsql-docs pgsql-patches

Tom Lane wrote:
> Bruce Momjian <bruce(at)momjian(dot)us> writes:
> > I can confirm this is a bug. Added to the TODO list:
> > o ARRAY[[1,2],[3,4]])[1] should return the same values as
> > ARRAY[[1,2],[3,4]])[1:1];
>
> This is not a bug, this is a definitional disagreement, and your TODO
> entry presupposes an answer that I don't particularly agree with.

Well, our documentation suggests thaat [1] is the same as [1:1]:

http://www.postgresql.org/docs/8.2/static/arrays.html#AEN5791

What is the issue here that makes that not true?

--
Bruce Momjian bruce(at)momjian(dot)us
EnterpriseDB http://www.enterprisedb.com

+ If your life is a hard drive, Christ can be your backup. +

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2007-01-31 03:44:17 Re: BUG #2913: Subscript on multidimensional array yields no value
Previous Message Tom Lane 2007-01-31 00:19:11 Re: BUG #2913: Subscript on multidimensional array yields no value

Browse pgsql-docs by date

  From Date Subject
Next Message Tom Lane 2007-01-31 03:44:17 Re: BUG #2913: Subscript on multidimensional array yields no value
Previous Message Tom Lane 2007-01-31 00:19:11 Re: BUG #2913: Subscript on multidimensional array yields no value

Browse pgsql-patches by date

  From Date Subject
Next Message Tom Lane 2007-01-31 03:44:17 Re: BUG #2913: Subscript on multidimensional array yields no value
Previous Message Tom Lane 2007-01-31 00:19:11 Re: BUG #2913: Subscript on multidimensional array yields no value