From: Scott Marlowe <scott.marlowe@gmail.com>
To: Campbell, Lance <lance@illinois.edu>
Cc: pgsql-admin@postgresql.org
Subject: Re: Query a list of tables
Date: Wed, 23 Jul 2008 09:02:03 -0600
Message-ID: <dcc563d10807230802l6e2035fchabfc8d2d8c317b65@mail.gmail.com> (raw)
In-Reply-To: <B10E6810AC2A2F4EA7550D072CDE8760CDDEBF@SAB-FENWICK.sab.uiuc.edu>
References: <B10E6810AC2A2F4EA7550D072CDE8760CDDEBF@SAB-FENWICK.sab.uiuc.edu>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: scott.marlowe@gmail.com, lance@illinois.edu
Subject: Re: Query a list of tables
In-Reply-To: <dcc563d10807230802l6e2035fchabfc8d2d8c317b65@mail.gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox