pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Brett W. McCoy <bmccoy@chapelperilous.net>
To: Matthew Taylor <bmatthewtaylor@hotmail.com>
Cc: pgsql-general@postgresql.org
Subject: Re: data dictionary
Date: Fri, 19 Jan 2001 06:38:26 -0500 (EST)
Message-ID: <Pine.LNX.4.30.0101190636070.11365-100000@chapelperilous.net> (raw)
In-Reply-To: <OE37YZqB2xyPaZI758N000015a6@hotmail.com>

On Fri, 19 Jan 2001, Matthew Taylor wrote:

> Umm I must have missed it in the manual, (read it 3-4 times tho) but what is
> the equivalent data dictionary structure in Postgres to the following in
> Oracle.
>
> Select table_name from user_tables;
>
> (gives a list of the table names in the database(table space) used at the
> time)
>
> etc.... various special tables defining the data dictionary....

Take a look at pg_class and pg_tables (which is a view based on pg_class),
which are available for each schema:

select * from pg_tables where tableowner=CURRENT_USER;

-- Brett
                                     http://www.chapelperilous.net/~bmccoy/
---------------------------------------------------------------------------
A woman without a man is like a fish without a bicycle.
		-- Gloria Steinem




view thread (3+ messages)

Message-ID: <Pine.LNX.4.30.0101190636070.11365-100000@chapelperilous.net>
Permalink:  ../Pine.LNX.4.30.0101190636070.11365-100000@chapelperilous.net/
Also on:    postgresql.org/message-id/Pine.LNX.4.30.0101190636070.11365-100000@chapelperilous.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: bmccoy@chapelperilous.net, bmatthewtaylor@hotmail.com, pgsql-general@postgresql.org
  Subject: Re: data dictionary
  In-Reply-To: <Pine.LNX.4.30.0101190636070.11365-100000@chapelperilous.net>
  References: <OE37YZqB2xyPaZI758N000015a6@hotmail.com> <Pine.LNX.4.30.0101190636070.11365-100000@chapelperilous.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox