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

From Tom Lane
Subject Re: Dealing with schema in psql utility?
Date
Msg-id 9627.1045801413@sss.pgh.pa.us
Whole thread Raw
In response to Re: Dealing with schema in psql utility?  (Tariq Muhammad <tmuhamma@libertyrms.com>)
List pgsql-general
Tariq Muhammad <tmuhamma@libertyrms.com> writes:
> On Thu, 20 Feb 2003, Dan Delaney wrote:
>> 1) get a list of the schema that have been created in the current
>> database

> select * from pg_namespace ;

7.4 psql will also offer "\dn".  We didn't get around to making this
happen for 7.3.

>> 2) View the list of tables in a schema other than "public"?

Try "\dt myschema.*"

>> 3) Rename a schema (is there an "alter schema" statement)?

On the to-do list, but not done yet.  As Tariq says, an ALTER command
will serve for the moment.

            regards, tom lane

pgsql-general by date:

Previous
From: John DeSoi
Date:
Subject: cursors and column names
Next
From: Deepa
Date:
Subject: Re: Creating index does not make any change in query plan.