Re: Dealing with schema in psql utility? - Mailing list pgsql-general

From Dan Delaney
Subject Re: Dealing with schema in psql utility?
Date
Msg-id 89935828-450C-11D7-8BFA-000A27E2A402@powercreative.com
Whole thread Raw
In response to Re: Dealing with schema in psql utility?  (Tariq Muhammad <tmuhamma@libertyrms.com>)
List pgsql-general
On Thursday, February 20, 2003, at 02:23 PM, Tariq Muhammad wrote:
> select * from pg_namespace ;
> Fist get the oid of the schema that you want to get the table list for
> :
> select oid from pg_namespace where nspname = 'schema_name';
> select relname from pg_class where relnamespace = oid; ## above oid.
> update pg_namespace set nspname='new_schema_name' where
> nspname='schema_name';

You've got to be kidding ;-)

Seriously though, isn't the purpose of schemas to make organization of
tables more convenient? It seems like dealing with schemas is a big
hassle. It'd be nice to have something like "\d", except for schemas,
to list the schemas that you've created, and an "alter schema"
statement to modify them.

--Dan


pgsql-general by date:

Previous
From: Dmitry Tkach
Date:
Subject: Re: A problem with sequences...
Next
From: Jonathan Bartlett
Date:
Subject: Re: What is the quickest query in the database?