schemas in 7.3b1 - Mailing list pgsql-general

From Chris
Subject schemas in 7.3b1
Date
Msg-id 3d9c49c7_1@news.iprimus.com.au
Whole thread Raw
Responses Re: schemas in 7.3b1  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
Hi all,

Just a quick question.

Is there an easy way to get a list of schemas in a database?

serverlogs=# SELECT version();
                             version
---------------------------------------------------------------
  PostgreSQL 7.3b1 on i586-pc-linux-gnu, compiled by GCC 2.95.3
(1 row)


serverlogs=# CREATE SCHEMA dwarf;
CREATE SCHEMA
serverlogs=# SELECT current_schemas(true);
    current_schemas
---------------------
  {pg_catalog,public}
(1 row)


I found the pg_namespace table, but that doesn't tell me what database
has a particular schema..

I checked the developer docs but I couldn't find anything there.


Thanks,
Chris.


pgsql-general by date:

Previous
From: "Nigel J. Andrews"
Date:
Subject: Re: Large databases, performance
Next
From: Tom Lane
Date:
Subject: Re: Oracle SGA like feature???