pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruce Momjian <bruce@momjian.us>
To: bashtanov@imap.cc
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #8395: empty aclitem arrays are considered 1-dimensional
Date: Fri, 31 Jan 2014 18:37:07 -0500
Message-ID: <20140131233707.GC19957@momjian.us> (raw)
In-Reply-To: <E1VCu3f-0000Hh-JU@wrigleys.postgresql.org>
References: <E1VCu3f-0000Hh-JU@wrigleys.postgresql.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

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  <bruce@momjian.us>        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



view thread (3+ messages)  latest in thread

Message-ID: <20140131233707.GC19957@momjian.us>
Permalink:  ../20140131233707.GC19957@momjian.us/
Also on:    postgresql.org/message-id/20140131233707.GC19957@momjian.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: bruce@momjian.us, bashtanov@imap.cc
  Subject: Re: BUG #8395: empty aclitem arrays are considered 1-dimensional
  In-Reply-To: <20140131233707.GC19957@momjian.us>
  References: <E1VCu3f-0000Hh-JU@wrigleys.postgresql.org> <20140131233707.GC19957@momjian.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox