Re: \du quite ugly in 8.4 - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: \du quite ugly in 8.4
Date
Msg-id 20091021132818.GA2526@alvh.no-ip.org
Whole thread Raw
In response to \du quite ugly in 8.4  (Peter Eisentraut <peter_e@gmx.net>)
Responses Re: \du quite ugly in 8.4
Re: \du quite ugly in 8.4
List pgsql-hackers
Peter Eisentraut wrote:
> Could someone clarify why this (from PG 8.4)
> 
> # \du
>               List of roles
>    Role name   | Attributes  | Member of
> ---------------+-------------+------------
>  admin         | Create role | {}
>                : Create DB
>  postgres      | Superuser   | {}
>                : Create role
>                : Create DB
>  someotheruser |             | {}
>  someuser      |             | {}
> 
> is an improvement over this (from PG 8.3)

The reason it's an improvement of sorts is that there are now more
possible attributes, and if we had kept adding columns it would have
become wider than 80 columns.

If there's a way to have the attributes as a single line,
comma-separated, but that wraps around when exceeding the terminal
width, I'm all for it.  We could also use that logic in a lot more
\-commands, so it'd be worthwhile I think.

-- 
Alvaro Herrera                                http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Could regexp_matches be immutable?
Next
From: "Kevin Grittner"
Date:
Subject: Re: Application name patch - v2