Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1a3kuP-0002IB-4p for pgsql-docs@arkaria.postgresql.org; Tue, 01 Dec 2015 13:23:53 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1a3kuO-0003of-NS for pgsql-docs@arkaria.postgresql.org; Tue, 01 Dec 2015 13:23:52 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1a3kuN-0003o4-PN for pgsql-docs@postgresql.org; Tue, 01 Dec 2015 13:23:51 +0000 Received: from momjian.us ([72.94.173.45]) by makus.postgresql.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.84) (envelope-from ) id 1a3kuK-0004Wf-Tx for pgsql-docs@postgresql.org; Tue, 01 Dec 2015 13:23:50 +0000 Received: from bruce by momjian.us with local (Exim 4.72) (envelope-from ) id 1a3kuJ-0008To-9W; Tue, 01 Dec 2015 08:23:47 -0500 Date: Tue, 1 Dec 2015 08:23:47 -0500 From: Bruce Momjian To: Michael Herold Cc: Tom Lane , pgsql-docs@postgresql.org Subject: Re: ARRAY[1] || NULL <> array_append(ARRAY[1], NULL) Message-ID: <20151201132347.GG19371@momjian.us> References: <559DC0CE.90900@hemio.de> <32402.1436450457@sss.pgh.pa.us> <562DFAB8.9050507@hemio.de> <20151130235919.GC19371@momjian.us> <565D9101.40303@hemio.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <565D9101.40303@hemio.de> 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-docs Precedence: bulk Sender: pgsql-docs-owner@postgresql.org On Tue, Dec 1, 2015 at 01:22:25PM +0100, Michael Herold wrote: > On 01/12/15 00:59, Bruce Momjian wrote: > >I would argue that '{}'::int[] is zero dimmensions, so there is no > >documented behavior for this. > > Thank you for your reply. Agree, I am writing to pgsql-docs because > I think this should be fixed with proper documentation. Right. I think the docs just don't explain what happens in the case you showed. > My actual concern is that it is totally unclear how to (re)set the > lower bound of an array. At least I waisted an hour to figure that > out. Yes, I am not sure how to do that either. -- Bruce Momjian http://momjian.us EnterpriseDB http://enterprisedb.com + As you are, so once was I. As I am, so you will be. + + Roman grave inscription + -- Sent via pgsql-docs mailing list (pgsql-docs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-docs