Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1W9Ne3-0007ai-RU for pgsql-bugs@arkaria.postgresql.org; Fri, 31 Jan 2014 23:37:12 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1W9Ne3-0000JZ-C9 for pgsql-bugs@arkaria.postgresql.org; Fri, 31 Jan 2014 23:37:11 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1W9Ne2-0000JT-LB for pgsql-bugs@postgresql.org; Fri, 31 Jan 2014 23:37:10 +0000 Received: from momjian.us ([72.94.173.45]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1W9Ndz-0000Xa-Uq for pgsql-bugs@postgresql.org; Fri, 31 Jan 2014 23:37:10 +0000 Received: from bruce by momjian.us with local (Exim 4.72) (envelope-from ) id 1W9Ndz-0000Uw-D9; Fri, 31 Jan 2014 18:37:07 -0500 Date: Fri, 31 Jan 2014 18:37:07 -0500 From: Bruce Momjian To: bashtanov@imap.cc Cc: pgsql-bugs@postgresql.org Subject: Re: BUG #8395: empty aclitem arrays are considered 1-dimensional Message-ID: <20140131233707.GC19957@momjian.us> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) X-Pg-Spam-Score: -2.5 (--) 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 Fri, Aug 23, 2013 at 04:17:55PM +0000, bashtanov@imap.cc wrote: > The following bug has been logged on the website: > > Bug reference: 8395 > Logged by: Alexey Bashtanov > Email address: bashtanov@imap.cc > PostgreSQL version: 9.1.9 > Operating system: Ubuntu linux 12.04 > Description: > > Empty aclitem arrays are considered 1-dimensional, but in general empty > arrays are 0-dimensional. It leads to the following problems: > > > STEPS TO REPRODUCE > 1) install fresh postgres, connect to it > 2) select relacl, relacl = '{}'::aclitem[], (select aclexplode(relacl)), > array_length(relacl, 1) from pg_class where oid::regclass = > 'pg_largeobject'::regclass; > 3) select aclexplode('{}'::aclitem[]); > > > EXPECTED > 2) {}, false, null, null > 3) no error, zero-lines table > > > GOT > 2) relacl | ?column? | ?column? | array_length > --------+----------+----------+-------------- > {} | f | | 0 > 3) ERROR: ACL arrays must be one-dimensional > > > also it can be reproduced on some 9.2 version Can someone comment on this bug report? -- 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