Re: Query a list of tables

Поиск
Список
Период
Сортировка
От Campbell, Lance
Тема Re: Query a list of tables
Дата
Msg-id B10E6810AC2A2F4EA7550D072CDE8760CDDEC0@SAB-FENWICK.sab.uiuc.edu
обсуждение исходный текст
Ответ на Re: Query a list of tables  ("Scott Marlowe" <scott.marlowe@gmail.com>)
Ответы Re: Query a list of tables  ("Gibson Chimhamhiwa" <gchimhamhiwa@gmail.com>)
Re: Query a list of tables  ("Milen A. Radev" <milen@radev.net>)
Список pgsql-admin
Is there a list somewhere of the system catalog tables and examples of
querying it for administrative reasons?

-----Original Message-----
From: Scott Marlowe [mailto:scott.marlowe@gmail.com]
Sent: Wednesday, July 23, 2008 10:02 AM
To: Campbell, Lance
Cc: pgsql-admin@postgresql.org
Subject: Re: [ADMIN] Query a list of tables

On Wed, Jul 23, 2008 at 8:56 AM, Campbell, Lance <lance@illinois.edu>
wrote:
> What is the SQL to do the following:
>
>
>
> 1)      Return a list of all possible SCHEMA names within a database.
>
> 2)      For a given SCHEMA return the list of all table names.

You can either do it with the INFORMATION_SCHEMA, or the system
catalogs.  To see how to do it with the system catalogs, then start
psql with the -E switch and issue \dn and set search_path='schemaname'
and \d

В списке pgsql-admin по дате отправления:

Предыдущее
От: "Gibson Chimhamhiwa"
Дата:
Сообщение: Re: Query a list of tables
Следующее
От: "Gibson Chimhamhiwa"
Дата:
Сообщение: Re: Query a list of tables