Re: How to list which tables are available?

From: Richard Huxton <dev(at)archonet(dot)com>
To: "B(dot)W(dot)H(dot) van Beest" <bwvb(at)xs4all(dot)nl>, pgsql-general(at)postgresql(dot)org
Subject: Re: How to list which tables are available?
Date: 2003-10-14 17:28:19
Message-ID: 200310141828.19470.dev@archonet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Tuesday 14 October 2003 10:53, B.W.H. van Beest wrote:
> It seems so elementary, but how I get a list of which tables are
> available in a database. I can't find an SQL command for this, but there
> must be a way!

In psql use \d or \dt

If you start psql with the -E flag it will show you how it does that.

There are also a number of pg_xxx views that show this sort of thing
(pg_tables, pg_indexes etc). I think these are covered in an appendix of the
manuals.

--
Richard Huxton
Archonet Ltd

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Richard Huxton 2003-10-14 17:30:11 Re: converting varchar date strings to date
Previous Message Lamar Owen 2003-10-14 17:15:18 Re: Redhat RPMs