From: Tom Lane <tgl@sss.pgh.pa.us>
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
Date: Thu, 12 May 2011 18:20:30 -0400
Message-ID: <11419.1305238830@sss.pgh.pa.us> (raw)
In-Reply-To: <201105110710.p4B7ALQ5021179@wwwmaster.postgresql.org>
References: <201105110710.p4B7ALQ5021179@wwwmaster.postgresql.org>
"psql \dp showing empty Access privileges column for {}" <gszpetkowski@gmail.com> 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
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: tgl@sss.pgh.pa.us, gszpetkowski@gmail.com
Subject: Re: BUG #6021: There is no difference between default and empty access privileges with \dp
In-Reply-To: <11419.1305238830@sss.pgh.pa.us>
References: <201105110710.p4B7ALQ5021179@wwwmaster.postgresql.org> <11419.1305238830@sss.pgh.pa.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