Re: schemas in 7.3b1 - Mailing list pgsql-general

From Tom Lane
Subject Re: schemas in 7.3b1
Date
Msg-id 5063.1033660610@sss.pgh.pa.us
Whole thread Raw
In response to schemas in 7.3b1  (Chris <pggeneral@designmagick.com>)
Responses Re: schemas in 7.3b1  (Bruce Momjian <pgman@candle.pha.pa.us>)
Re: schemas in 7.3b1  (Lee Kindness <lkindness@csl.co.uk>)
Re: schemas in 7.3b1  (Sean Chittenden <sean@chittenden.org>)
List pgsql-general
Chris <pggeneral@designmagick.com> writes:
> Is there an easy way to get a list of schemas in a database?
> I found the pg_namespace table, but that doesn't tell me what database
> has a particular schema.

Yours.  pg_namespace is local to a database, same as most other
system catalogs.

We had meant to add a \d command for listing schemas in psql, but
both \ds and \dS are taken already :-(.  Any ideas out there for
a reasonable choice?

            regards, tom lane

pgsql-general by date:

Previous
From: "Shridhar Daithankar"
Date:
Subject: Re: Large databases, performance
Next
From: Robert Treat
Date:
Subject: Re: Large databases, performance