Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id D907EB5DBBC for ; Sun, 15 May 2011 18:03:08 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 48302-10 for ; Sun, 15 May 2011 21:03:01 +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 DC92FB5D802 for ; Sun, 15 May 2011 18:03:00 -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 p4FL2wAq017766; Sun, 15 May 2011 17:02:58 -0400 (EDT) To: Robert Haas cc: gszpetkowski@gmail.com, pgsql-bugs@postgresql.org Subject: Re: BUG #6021: There is no difference between default and empty access privileges with \dp In-reply-to: References: <201105110710.p4B7ALQ5021179@wwwmaster.postgresql.org> <11419.1305238830@sss.pgh.pa.us> Comments: In-reply-to Robert Haas message dated "Sun, 15 May 2011 16:01:16 -0400" Date: Sun, 15 May 2011 17:02:58 -0400 Message-ID: <17765.1305493378@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/126 X-Sequence-Number: 30265 Robert Haas writes: > On Thu, May 12, 2011 at 6:20 PM, Tom Lane wrote: >> 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. > I don't think that's too big a change. ISTM we ought to change > something. Another idea would be to always show the permissions, even > if nothing has been changed from the defaults. That would require psql to have local knowledge about what the defaults are, which is someplace I'd rather not go ... regards, tom lane