Re: SHOW TABLES - Mailing list pgsql-hackers

From Rob Wultsch
Subject Re: SHOW TABLES
Date
Msg-id AANLkTilaIDcmcgfsXQB_O_QaTAkPHw9Do-JkLxjarXCQ@mail.gmail.com
Whole thread Raw
In response to Re: SHOW TABLES  (Andres Freund <andres@anarazel.de>)
Responses Re: SHOW TABLES
List pgsql-hackers
On Sun, Jul 18, 2010 at 11:58 AM, Andres Freund <andres@anarazel.de> wrote:
> On Sunday 18 July 2010 20:39:07 Dimitri Fontaine wrote:
>> SHOW ANY TABLE
>> GROUP BY tablename
>>   HAVING array_agg(attributes) @> array['date'::regtype, 'time'::regtype];
> Why is that in *any* way better than
>
> SELECT *
> FROM meta.tables
> ...
>
> Oh. The second looks like something I know. Oh. My editor maybe as well? Oh.
> And some other tools also?
>
> Your syntax also forgets that maybe I only need a subset of the information.
>
> I am quite a bit surprised about all this discussion. I have a very hard time
> we will find anything people agree about and can remember well enough to be
> usefull for both manual and automatic processing.
>
> I agree that the internal pg_* tables are not exactly easy to query. And that
> the information_schema. ones arent complete enough and have enough concept
> mismatch to be confusing. But why all this?
>
> Andres
>

Do you have an alternative suggestion for emulating
"SHOW SCHEMAS"
"SHOW TABLES"
"DESC object"?

Make a user friendly interface is not easy, but it sure as heck is important.


--
Rob Wultsch
wultsch@gmail.com


pgsql-hackers by date:

Previous
From: "Kevin Grittner"
Date:
Subject: Re: SHOW TABLES
Next
From: Stefan Kaltenbrunner
Date:
Subject: Re: SHOW TABLES