2011/11/5 Josh Kupershmidt <schmiddy@gmail.com>:
> I'd like to propose a "concise mode" for psql, which users might turn
> on via a \pset option. Concise mode would affect only the output of
> psql's backslash commands. For output results which have some all-NULL
> columns, as in:
>
> test=# \d+ foo
> Table "public.foo"
> Column | Type | Modifiers | Storage | Stats target | Description
> --------+---------+-----------+---------+--------------+-------------
> a | integer | | plain | |
> b | integer | | plain | |
> Has OIDs: no
>
> Concise mode would simply omit the all-NULL columns, so that the
> output would look like this:
>
> test=# \d+ foo
> Table "public.foo"
> Column | Type | Storage
> --------+---------+---------
> a | integer | plain
> b | integer | plain
> Has OIDs: no
Using your example, what if column 'b' has a comment and 'a' not? How
the above output will be displayed?
--
Dickson S. Guedes
mail/xmpp: guedes@guedesoft.net - skype: guediz
http://guedesoft.net - http://www.postgresql.org.br