Re: psql \d option list overloaded - Mailing list pgsql-hackers

From Dennis Björklund
Subject Re: psql \d option list overloaded
Date
Msg-id Pine.LNX.4.44.0401101720500.13405-100000@zigo.dhs.org
Whole thread Raw
In response to Re: psql \d option list overloaded  (Peter Eisentraut <peter_e@gmx.net>)
Responses Re: psql \d option list overloaded  (Greg Stark <gsstark@mit.edu>)
Re: psql \d option list overloaded  (Peter Eisentraut <peter_e@gmx.net>)
List pgsql-hackers
On Sat, 10 Jan 2004, Peter Eisentraut wrote:

> > to remember way of showing the various entities in psql (at the very
> > least) would be of great advantage.  It's something that MySQL gets
> > right.  As it turns out, we already have "SHOW" in psql and it's used
> > for something else.
> 
> What is wrong with
> 
> SELECT * FROM information_schema.tables;

The result is very hard to read since it's so much of it (try column
instead of tables). The \xx commands do some nice formatting you don't 
get from the above.

I would rather have long commands so one can write

\describe_table foo

and have the tab completion work for these of course (only for the long 
commands, the \dt and such does not belong in completion).

The information schema is nice, but it's not what I want to use at the 
prompt to view the content of the database.

-- 
/Dennis Björklund



pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: psql \d option list overloaded
Next
From: Andreas Pflug
Date:
Subject: Re: OLE DB driver