Received: from localhost (maia-3.hub.org [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id A7E0F9FB8DE for ; Mon, 19 Feb 2007 23:47:27 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-new, port 10024) with ESMTP id 61327-05 for ; Mon, 19 Feb 2007 23:47:17 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from momjian.us (momjian.us [70.90.9.53]) by postgresql.org (Postfix) with ESMTP id C85869FB9BB for ; Mon, 19 Feb 2007 23:47:23 -0400 (AST) Received: (from bruce@localhost) by momjian.us (8.11.6/8.11.6) id l1K3lN521847; Mon, 19 Feb 2007 22:47:23 -0500 (EST) From: Bruce Momjian Message-Id: <200702200347.l1K3lN521847@momjian.us> Subject: Re: BUG #2913: Subscript on multidimensional array yields no value In-Reply-To: <13671.1170202751@sss.pgh.pa.us> To: Tom Lane Date: Mon, 19 Feb 2007 22:47:23 -0500 (EST) CC: Roman Nowak , pgsql-bugs@postgresql.org X-Mailer: ELM [version 2.4ME+ PL123] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="US-ASCII" X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.066 tagged_above=0 required=5 tests=AWL, BAYES_50, SPF_HELO_PASS, SPF_PASS X-Spam-Level: X-Archive-Number: 200702/136 X-Sequence-Number: 16938 Tom Lane wrote: > Bruce Momjian 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. TODO item removed, now that I understand the array behavior. -- Bruce Momjian http://momjian.us EnterpriseDB http://www.enterprisedb.com + If your life is a hard drive, Christ can be your backup. +