Dealing with schema in psql utility?

From: Dan Delaney <ddelaney(at)powercreative(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Dealing with schema in psql utility?
Date: 2003-02-20 18:46:08
Message-ID: 92DB198B-4503-11D7-8BFA-000A27E2A402@powercreative.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hello all.

In the psql utility, how can I:
1) get a list of the schema that have been created in the current
database
2) View the list of tables in a schema other than "public"?
3) Rename a schema (is there an "alter schema" statement)?

I can't seem to find any way to actually see a list of the schemas that
I've created. And when I create a table in another schema with "create
schemaname.tablename (...)" it doesn't show up in the list of tables
for the database (\d), even though the list has a "schema" column,
which I presumed meant that it would show all of the objects in all
schemas in the database (wrong).

--Dan

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tino Wildenhain 2003-02-20 18:47:00 Re: What is the quickest query in the database?
Previous Message Dennis Gearon 2003-02-20 18:34:11 Re: Table Partitioning in Postgres: