From: | Bernd Helmle <mailings(at)oopsware(dot)de> |
---|---|
To: | Alvaro Herrera <alvherre(at)commandprompt(dot)com>, Brendan Jurd <direvus(at)gmail(dot)com> |
Cc: | pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: Show INHERIT in \du |
Date: | 2008-02-14 14:29:29 |
Message-ID: | 49E41B4B51B565B05170E64A@imhotep.credativ.de |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers pgsql-patches |
--On Donnerstag, Februar 14, 2008 10:27:37 -0300 Alvaro Herrera
<alvherre(at)commandprompt(dot)com> wrote:
> I wonder if it's possible to create a more compact output -- say, a
> fixed-width column, with a letter for each enabled attribute, or a space
> in the respective position when the attribute is disabled. Legend of
> letter at the bottom of the output, or some such. So instead of
>
> alvherre=# \du
> List of roles
> Role name | Superuser | Create role | Create DB | Connections | Member
> of
> -----------+-----------+-------------+-----------+-------------+---------
> -- alvherre | yes | yes | yes | no limit | {}
> foo | no | no | yes | no limit | {} (2
> rows)
>
> We would have something like
>
> alvherre=# \du
> List of roles
> Role name | Attributes | Connections | Member of
> -----------+------------+-------------+-----------
> alvherre | SRDI | no limit | {}
> foo | D | no limit | {}
> (2 rows)
> Attributes: S -- superuser
> R -- create role
> D -- create database
> I -- inherit
Hmm, i don't think that makes it easier to read, especially when you get a
long list of role names and the legend at the bottom of it. And you are
always able to get a compact view with \x and \du <rolename>.
--
Thanks
Bernd
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2008-02-14 16:06:42 | Re: wishlist for 8.4 |
Previous Message | Simon Riggs | 2008-02-14 13:44:18 | Reworking WAL locking |
From | Date | Subject | |
---|---|---|---|
Next Message | Greg Smith | 2008-02-14 14:41:39 | Re: PG quitting sporadically!! |
Previous Message | Alvaro Herrera | 2008-02-14 13:27:37 | Re: Show INHERIT in \du |