Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZOae9-0004KE-OE for pgsql-bugs@arkaria.postgresql.org; Mon, 10 Aug 2015 00:08:57 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZOae8-0001ys-J5 for pgsql-bugs@arkaria.postgresql.org; Mon, 10 Aug 2015 00:08:56 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1ZOae7-0001yJ-Oq for pgsql-bugs@postgresql.org; Mon, 10 Aug 2015 00:08:55 +0000 Received: from momjian.us ([72.94.173.45]) by magus.postgresql.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.84) (envelope-from ) id 1ZOae4-0001js-Dq for pgsql-bugs@postgresql.org; Mon, 10 Aug 2015 00:08:55 +0000 Received: from bruce by momjian.us with local (Exim 4.72) (envelope-from ) id 1ZOae1-0003nj-MD; Sun, 09 Aug 2015 20:08:49 -0400 Date: Sun, 9 Aug 2015 20:08:49 -0400 From: Bruce Momjian To: brent.n.douglas@gmail.com Cc: pgsql-bugs@postgresql.org Subject: Re: BUG #13445: 8.15.1 is missleading regarding array dimensionality Message-ID: <20150810000849.GB6582@momjian.us> References: <20150615161609.2737.79192@wrigleys.postgresql.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150615161609.2737.79192@wrigleys.postgresql.org> User-Agent: Mutt/1.5.20 (2009-06-14) X-Pg-Spam-Score: -1.9 (-) 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 On Mon, Jun 15, 2015 at 04:16:09PM +0000, brent.n.douglas@gmail.com wrote: > The following bug has been logged on the website: > > Bug reference: 13445 > Logged by: Brent Douglas > Email address: brent.n.douglas@gmail.com > PostgreSQL version: 9.4.4 > Operating system: docs only > Description: > > Section 8.15.1 is slightly missleading regarding array dimensionality as the > first example and following comment both read like array declarations in > many programming languages where [] is a single dimensional array and [][] > is a two dimensional array while having different semantics. > > To make it more obvious that arrays do not have dimensions the section > stating this could be moved before the example table sal_emp. > > The words "one-dimensional" and "two-dimensional" in the comment on the > sal_emp example table could also be removed. Well, it's a little odd because while dimensionality is not enforced when defining columns, it does have an effect when accessing values. I am not sure that mentioning things in the opposite order would help as we have to define dimensionality for us later. -- Bruce Momjian http://momjian.us EnterpriseDB http://enterprisedb.com + Everyone has their own god. + -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs