Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VEETw-0003dl-9z for pgsql-bugs@arkaria.postgresql.org; Tue, 27 Aug 2013 08:18:32 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1VEETv-0002xO-En for pgsql-bugs@arkaria.postgresql.org; Tue, 27 Aug 2013 08:18:31 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VEETu-0002xH-GA for pgsql-bugs@postgresql.org; Tue, 27 Aug 2013 08:18:30 +0000 Received: from mahout.postgresql.org ([2001:4800:7903:4::123]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VEETi-0005lo-N5 for pgsql-bugs@postgresql.org; Tue, 27 Aug 2013 08:18:30 +0000 Received: from [204.145.124.246] (helo=wrigleys.postgresql.org) by mahout.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VEETf-00057L-K3 for pgsql-bugs@postgresql.org; Tue, 27 Aug 2013 08:18:18 +0000 Received: from www-data by wrigleys.postgresql.org with local (Exim 4.80) (envelope-from ) id 1VEETa-0007KM-8O for pgsql-bugs@postgresql.org; Tue, 27 Aug 2013 08:18:10 +0000 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: BUG #8399: inconsistent input of multidimensional arrays To: pgsql-bugs@postgresql.org From: borz_off@cs.msu.su Message-Id: Date: Tue, 27 Aug 2013 08:18:10 +0000 X-Pg-Spam-Score: -4.4 (----) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org The following bug has been logged on the website: Bug reference: 8399 Logged by: Alexey Borzov Email address: borz_off@cs.msu.su PostgreSQL version: 9.3rc1 Operating system: irrelevant Description: PostgreSQL documentation states: "Multidimensional arrays must have matching extents for each dimension. A mismatch causes an error..." This is not completely true: postgres=# select cast('{{1,2}, {3}}' as integer[]); ERROR: multidimensional arrays must have array expressions with matching dimensions LINE 1: select cast('{{1,2}, {3}}' as integer[]); ^ postgres=# select cast('{{1}, {2,3}}' as integer[]); int4 ------------------ {{1,NULL},{2,3}} (1 row) Trying to use an array constructor yields an expected error in both cases. Confirmed on 9.3rc1 and 9.0.13 -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs