Re: How to list schemas and table in psql?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Phillip J(dot) Allen" <paallen(at)attglobal(dot)net>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: How to list schemas and table in psql?
Date: 2003-01-10 04:50:54
Message-ID: 27921.1042174254@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

"Phillip J. Allen" <paallen(at)attglobal(dot)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

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message eric soroos 2003-01-10 17:05:20 Vacuum deadlocks?
Previous Message Ron Johnson 2003-01-10 03:47:51 Re: How to list schemas and table in psql?