Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 519BAB5DBF0 for ; Tue, 24 May 2011 19:28:59 -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 92414-08 for ; Tue, 24 May 2011 22:28:52 +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 43038B5DBD8 for ; Tue, 24 May 2011 19:28:52 -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 p4OMSptQ019544; Tue, 24 May 2011 18:28:51 -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> <17765.1305493378@sss.pgh.pa.us> Comments: In-reply-to Robert Haas message dated "Mon, 23 May 2011 13:10:21 -0400" Date: Tue, 24 May 2011 18:28:51 -0400 Message-ID: <19543.1306276131@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/177 X-Sequence-Number: 30316 Robert Haas writes: > On Sun, May 15, 2011 at 5:02 PM, Tom Lane wrote: >> 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 ... > Ugh. It's too bad the server doesn't expose that. But given that it > doesn't, your idea sounds good to me. So is this something we should slip into 9.1, or is it 9.2 material? I've got no strong opinion about that myself. regards, tom lane