Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VCxNa-0005wG-K1 for pgsql-bugs@arkaria.postgresql.org; Fri, 23 Aug 2013 19:50:42 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1VCxNa-0000E1-3T for pgsql-bugs@arkaria.postgresql.org; Fri, 23 Aug 2013 19:50:42 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VCu3q-0003GX-NE for pgsql-bugs@postgresql.org; Fri, 23 Aug 2013 16:18:06 +0000 Received: from mahout.postgresql.org ([2001:4800:7903:4::123]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VCu3m-0004B7-EL for pgsql-bugs@postgresql.org; Fri, 23 Aug 2013 16:18:06 +0000 Received: from [204.145.124.246] (helo=wrigleys.postgresql.org) by mahout.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VCu3k-0002m4-VS for pgsql-bugs@postgresql.org; Fri, 23 Aug 2013 16:18:01 +0000 Received: from www-data by wrigleys.postgresql.org with local (Exim 4.80) (envelope-from ) id 1VCu3f-0000Hh-JU for pgsql-bugs@postgresql.org; Fri, 23 Aug 2013 16:17:55 +0000 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: BUG #8395: empty aclitem arrays are considered 1-dimensional To: pgsql-bugs@postgresql.org From: bashtanov@imap.cc Message-Id: Date: Fri, 23 Aug 2013 16:17:55 +0000 X-Pg-Spam-Score: -4.7 (----) 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: 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 -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs