Re: data dictionary? - Mailing list pgsql-novice

From Thomas Good
Subject Re: data dictionary?
Date
Msg-id Pine.LNX.3.96.1001018155725.20090A-100000@q8.nrnet.org
Whole thread Raw
In response to data dictionary?  (Beth Gatewood <bethg@mbt.washington.edu>)
List pgsql-novice
On Wed, 18 Oct 2000, Beth Gatewood wrote:

> Hi-
>
> New to PostGreSQL...previously used Oracle.
>
> Could someone please tell me where the Data Dictionary is located?
> Specifically, I want to get a list of tables.  I know about the \dt
> command but I would like to see where this is actually stored (so that I
>
> can execute SQL against it).

Hi Beth,

SELECT * FROM pg_class;

is a good place to start when querying the system catalogue.
BTW, default tables (sys catalogue) are stored in:

/usr/local/pgsql/data/base/template1

Cheers,
Tom

--------------------------------------------------------------------
               SVCMC - Center for Behavioral Health
--------------------------------------------------------------------
Thomas Good                          tomg@ { admin | q8 } .nrnet.org
IS Coordinator / DBA                 Phone: 718-354-5528
                                     Fax:   718-354-5056
--------------------------------------------------------------------
Powered by:  PostgreSQL     s l a c k w a r e          FreeBSD:
               RDBMS       |---------- linux      The Power To Serve
--------------------------------------------------------------------


pgsql-novice by date:

Previous
From: "D. Duccini"
Date:
Subject: Re: data dictionary?
Next
From: Beth Gatewood
Date:
Subject: Re: data dictionary?