From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Stephen Frost <sfrost(at)snowman(dot)net> |
Cc: | pgsql-hackers(at)postgresql(dot)org, Markus Wanner <markus(at)bluegap(dot)ch>, Alvaro Herrera <alvherre(at)commandprompt(dot)com> |
Subject: | Re: Column-Level Privileges |
Date: | 2009-01-23 00:03:45 |
Message-ID: | 21339.1232669025@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
BTW, something else I'd meant to bring up for discussion is whether
anyone likes the formatting of column privileges in \dp:
regression=# create table foo(bar int, baz int);
CREATE TABLE
regression=# grant select on foo to joe;
GRANT
regression=# grant insert(bar), update(baz) on foo to joe;
GRANT
regression=# \dp foo
Access privileges
Schema | Name | Type | Access privileges | Column access privileges
--------+------+-------+---------------------------+--------------------------
public | foo | table | postgres=arwdDxt/postgres | bar:
: joe=r/postgres : joe=a/postgres
: baz:
: joe=w/postgres
(1 row)
(The colons after the column names are something I added on my own
authority to Stephen's original.)
This seems a bit ASCII-art-ish to me; it certainly wouldn't be readily
parsable by programs. Now that's not really the design goal for \d
output, and I don't have a better suggestion offhand, but still...
anyone got a better idea?
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2009-01-23 00:03:58 | Re: FWD: Re: Updated backslash consistency patch |
Previous Message | Josh Berkus | 2009-01-22 23:54:43 | Re: Pluggable Indexes (was Re: rmgr hooks (v2)) |