pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feeddata dictionary
3+ messages / 3 participants
[nested] [flat]
* data dictionary
@ 2001-01-19 10:29 Matthew Taylor <bmatthewtaylor@hotmail.com>
0 siblings, 2 replies; 3+ messages in thread
From: Matthew Taylor @ 2001-01-19 10:29 UTC (permalink / raw)
To: pgsql-general@postgresql.org
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....
M
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: data dictionary
@ 2001-01-19 11:25 J.H.M. Dassen (Ray) <jdassen@cistron-office.nl>
parent: Matthew Taylor <bmatthewtaylor@hotmail.com>
1 sibling, 0 replies; 3+ messages in thread
From: J.H.M. Dassen (Ray) @ 2001-01-19 11:25 UTC (permalink / raw)
To: pgsql-general@postgresql.org
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?
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: data dictionary
@ 2001-01-19 11:38 Brett W. McCoy <bmccoy@chapelperilous.net>
parent: Matthew Taylor <bmatthewtaylor@hotmail.com>
1 sibling, 0 replies; 3+ messages in thread
From: Brett W. McCoy @ 2001-01-19 11:38 UTC (permalink / raw)
To: Matthew Taylor <bmatthewtaylor@hotmail.com>; +Cc: pgsql-general@postgresql.org
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
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2001-01-19 11:38 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2001-01-19 10:29 data dictionary Matthew Taylor <bmatthewtaylor@hotmail.com>
2001-01-19 11:25 ` J.H.M. Dassen (Ray) <jdassen@cistron-office.nl>
2001-01-19 11:38 ` Brett W. McCoy <bmccoy@chapelperilous.net>
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