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

From Peter Eisentraut
Subject Re: psql \d option list overloaded
Date
Msg-id 200401101407.24766.peter_e@gmx.net
Whole thread Raw
In response to Re: psql \d option list overloaded  (Kevin Brown <kevin@sysexperts.com>)
Responses Re: psql \d option list overloaded  (Dennis Björklund <db@zigo.dhs.org>)
List pgsql-hackers
Kevin Brown wrote:
> Every database engine is different, but in the case of PG it makes
> sense to adopt the best methods we can find.  A consistent and easy
> 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.  So we might instead use something else (e.g.
> "VIEW") instead.

What is wrong with

SELECT * FROM information_schema.tables;

?  If it's too much to type, put information_schema in the path.  This 
syntax has the advantage that you can use qualifications and other SQL 
features.  And you can build customized views on top of it.  Does SHOW 
TABLES or whatever it might be called support that?



pgsql-hackers by date:

Previous
From: Kevin Brown
Date:
Subject: Re: psql \d option list overloaded
Next
From: Dennis Björklund
Date:
Subject: Re: psql \d option list overloaded