Received: from janeway.cistron.net (janeway.cistron.net [195.64.65.23]) by mail.postgresql.org (8.11.1/8.11.1) with ESMTP id f0JBPO098398 for ; Fri, 19 Jan 2001 06:25:25 -0500 (EST) (envelope-from jdassen@cistron-office.nl) Received: from odin (jdassen@odin.cistron-office.nl [195.64.65.236]) by janeway.cistron.net (8.9.3/8.9.3/Debian 8.9.3-6) with SMTP id MAA11730 for ; Fri, 19 Jan 2001 12:25:21 +0100 Received: by odin (sSMTP sendmail emulation); Fri, 19 Jan 2001 12:25:20 +0100 Date: Fri, 19 Jan 2001 12:25:20 +0100 From: "J.H.M. Dassen (Ray)" To: pgsql-general@postgresql.org Subject: Re: data dictionary Message-ID: <20010119122520.A13425@cistron-office.nl> Mail-Followup-To: pgsql-general@postgresql.org References: <20010116180030.B8328@cistron-office.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.12i In-Reply-To: ; from bmatthewtaylor@hotmail.com on Fri, Jan 19, 2001 at 09:29:41PM +1100 X-Archive-Number: 200101/900 X-Sequence-Number: 3124 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_" in "psql") HTH, Ray -- Would you rather be root or reboot?