Re: SHOW TABLES

From: Bruce Momjian <bruce(at)momjian(dot)us>
To: Bernd Helmle <mailings(at)oopsware(dot)de>
Cc: Guillaume Lelarge <guillaume(at)lelarge(dot)info>, jd(at)commandprompt(dot)com, Simon Riggs <simon(at)2ndQuadrant(dot)com>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: SHOW TABLES
Date: 2010-07-15 19:38:32
Message-ID: 201007151938.o6FJcWu28470@momjian.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Bernd Helmle wrote:
>
>
> --On 15. Juli 2010 18:02:10 +0200 Guillaume Lelarge
> <guillaume(at)lelarge(dot)info> wrote:
>
> > And would you add the complete syntax? I mean:
> >
> > SHOW [OPEN] TABLES [FROM db_name] [LIKE 'pattern']
> >
> > I'm wondering what one can do with the [FROM db_name] clause :)
>
> And as soon as you have this, people want to have that list ordered by
> size, schema or number of estimated tuples.....
>
> I think what we really need to do is to improve our current interfaces
> and/or documentation to show how to do many tasks. In former courses i gave
> i always heard how easy it is in MySQL to get dictionary information, but
> once you are going to show the entry keys in how to query
> information_schema or using the administration functions in PostgreSQL the
> big "aha" begin to start. Maybe we can wrap many of the current psql output
> into SRF's to ease the retrieval for such kind of information other
> procedures or interfaces.

I assume SHOW TABLES would only be useful for interactive terminal
sesssions, not for application code (which should use
information_schema), so what non-psql interactive terminal programs are
there?

--
Bruce Momjian <bruce(at)momjian(dot)us> http://momjian.us
EnterpriseDB http://enterprisedb.com

+ None of us is going to be here forever. +

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Greg Sabino Mullane 2010-07-15 19:43:47 Re: SHOW TABLES
Previous Message Andreas 'ads' Scherbaum 2010-07-15 19:27:30 Re: SHOW TABLES