Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id DF2D8B5D91F for ; Thu, 12 May 2011 19:20:38 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 29280-04 for ; Thu, 12 May 2011 22:20:32 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id DC57FB5D90E for ; Thu, 12 May 2011 19:20:31 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id p4CMKUrg011420; Thu, 12 May 2011 18:20:30 -0400 (EDT) To: gszpetkowski@gmail.com cc: pgsql-bugs@postgresql.org Subject: Re: BUG #6021: There is no difference between default and empty access privileges with \dp In-reply-to: <201105110710.p4B7ALQ5021179@wwwmaster.postgresql.org> References: <201105110710.p4B7ALQ5021179@wwwmaster.postgresql.org> Comments: In-reply-to "psql \dp showing empty Access privileges column for {}" message dated "Wed, 11 May 2011 07:10:21 +0000" Date: Thu, 12 May 2011 18:20:30 -0400 Message-ID: <11419.1305238830@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-5 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201105/116 X-Sequence-Number: 30255 "psql \dp showing empty Access privileges column for {}" writes: > Description: There is no difference between default and empty access > privileges with \dp Yeah. It's been like that since forever, and nobody's complained before, possibly because revoking all privileges for everybody isn't a particularly useful real-world case. One possibility is to start showing "default" when the ACL is null, which would be quite easy to implement: COALESCE(array_to_string(c.relacl, E'\n'), 'default') But that might be too big a change. Or we could take the opposite tack of changing the display in the no-privileges case; but I don't see a similarly compact way to do that. regards, tom lane