pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: J.H.M. Dassen (Ray) <jdassen@cistron-office.nl>
To: pgsql-general@postgresql.org
Subject: Re: data dictionary
Date: Fri, 19 Jan 2001 12:25:20 +0100
Message-ID: <20010119122520.A13425@cistron-office.nl> (raw)
In-Reply-To: <OE37YZqB2xyPaZI758N000015a6@hotmail.com>
References: <MPG.14cd937c14c99487989704@news.soneraplaza.nl>
	<20010116180030.B8328@cistron-office.nl>
	<OE37YZqB2xyPaZI758N000015a6@hotmail.com>

On Fri, Jan 19, 2001 at 21:29:41 +1100, 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;

> etc.... various special tables defining the data dictionary....

PostgreSQL stores its meta-data in tables named pg_something, e.g. for
7.0.3:
pg_aggregate    pg_description  pg_listener     pg_statistic
pg_am           pg_group        pg_opclass      pg_tables
pg_amop         pg_index        pg_operator     pg_trigger
pg_amproc       pg_indexes      pg_proc         pg_type
pg_attrdef      pg_inheritproc  pg_relcheck     pg_user
pg_attribute    pg_inherits     pg_rewrite      pg_views
pg_class        pg_ipl          pg_rules
pg_database     pg_language     pg_shadow

(obtained by doing "select * from pg_" <TAB> in "psql")

HTH,
Ray
-- 
Would you rather be root or reboot?



view thread (3+ messages)  latest in thread

Message-ID: <20010119122520.A13425@cistron-office.nl>
Permalink:  ../20010119122520.A13425@cistron-office.nl/
Also on:    postgresql.org/message-id/20010119122520.A13425@cistron-office.nl

 · 

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: jdassen@cistron-office.nl, pgsql-general@postgresql.org
  Subject: Re: data dictionary
  In-Reply-To: <20010119122520.A13425@cistron-office.nl>
  References: <MPG.14cd937c14c99487989704@news.soneraplaza.nl> <20010116180030.B8328@cistron-office.nl> <OE37YZqB2xyPaZI758N000015a6@hotmail.com> <20010119122520.A13425@cistron-office.nl>

* 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