X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (neptune.hub.org [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 27700D1E88A for ; Wed, 21 Jan 2004 19:33:04 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 21147-03 for ; Wed, 21 Jan 2004 15:32:33 -0400 (AST) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by svr1.postgresql.org (Postfix) with ESMTP id CAC44D1B49A for ; Wed, 21 Jan 2004 15:15:52 -0400 (AST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.10/8.12.10) with ESMTP id i0LJFppH011797; Wed, 21 Jan 2004 14:15:51 -0500 (EST) To: Joe Conway Cc: Rajesh Kumar Mallah , pgsql-sql@postgresql.org Subject: Re: array_lower /array_prepend doubt In-reply-to: <400EC94F.7010703@joeconway.com> References: <400E85EC.4000106@trade-india.com> <1648.1074705270@sss.pgh.pa.us> <400EBEF0.6060005@joeconway.com> <2597.1074708698@sss.pgh.pa.us> <400EC6A2.20007@joeconway.com> <8803.1074710460@sss.pgh.pa.us> <400EC94F.7010703@joeconway.com> Comments: In-reply-to Joe Conway message dated "Wed, 21 Jan 2004 10:47:43 -0800" Date: Wed, 21 Jan 2004 14:15:51 -0500 Message-ID: <11796.1074712551@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200401/202 X-Sequence-Number: 16595 Joe Conway writes: > We may need another extension to the array literal syntax in > order to deal with this. I'll report back after I've had some time to > study it. There already is support in array_in for specification of the array dimensions (though it may be suffering bit rot for lack of use/testing). I think the main thing needed is some thought about when array_out should print dimensions; we don't want it doing so all the time, for both clutter and backwards compatibility reasons. Maybe "whenever any lower bound is not 1" would do; or maybe we want to invent a GUC switch to control its behavior. regards, tom lane