dbTalk Databases Forums  

Meta data about object in postgres

comp.databases.postgresql.novice comp.databases.postgresql.novice


Discuss Meta data about object in postgres in the comp.databases.postgresql.novice forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Raghu
 
Posts: n/a

Default Meta data about object in postgres - 01-14-2004 , 03:00 AM






Hi,
I am relatively new to postgres. I want to know if there are tables
(Meta data tables) that give me information abt all the tables that
exist in my database etc. Some thing similar to all_tables in oracle.

Also, is there a command to describe the columns in the table. Similar
to desc table_name in oracle.

Thanx in advance,
Raghu.

Reply With Quote
  #2  
Old   
glenn
 
Posts: n/a

Default Re: Meta data about object in postgres - 01-19-2004 , 08:02 AM






Hi -
I've always wanted to know this - so now I've got an excuse to find out.
Ok. Check out chapter 44 of the doco called "system catalogs" - it looks
quite promising (though not overly friendly or straight forward),
especially tables pg_database, pg_class and pg_attribute.

Glenn

On Wed, 2004-01-14 at 20:00, Raghu wrote:
Quote:
Hi,
I am relatively new to postgres. I want to know if there are tables
(Meta data tables) that give me information abt all the tables that
exist in my database etc. Some thing similar to all_tables in oracle.

Also, is there a command to describe the columns in the table. Similar
to desc table_name in oracle.

Thanx in advance,
Raghu.

---------------------------(end of broadcast)---------------------------
TIP 8: explain analyze is your friend


---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.