Re: How to list schemas and table in psql? - Mailing list pgsql-novice

From Tom Lane
Subject Re: How to list schemas and table in psql?
Date
Msg-id 27921.1042174254@sss.pgh.pa.us
Whole thread Raw
In response to How to list schemas and table in psql?  ("Phillip J. Allen" <paallen@attglobal.net>)
List pgsql-novice
"Phillip J. Allen" <paallen@attglobal.net> writes:
> I just got the PG 7.3.1 installed and am now experimenting with
> schemas.  Now when I do a "\dt" in psql I only get a listing of tables
> in the current schema (public by default).

> So how do I get a listing in psql for:

> 1. all the schemas that exist in the database

As of 7.3, we didn't get around to providing a backslash command in psql
to do this, but "select * from pg_namespace" will answer.

> 2. all the tables in all schemas

Try "\dt *.*"

            regards, tom lane

pgsql-novice by date:

Previous
From: Ron Johnson
Date:
Subject: Re: How to list schemas and table in psql?
Next
From: eric soroos
Date:
Subject: Vacuum deadlocks?