If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > PostgreSQL > Metadata of PostgreSql

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-11-11, 03:43
andurkar andurkar is offline
Registered User
 
Join Date: Sep 2011
Posts: 9
Metadata of PostgreSql

Hello all,
I am working on PostgreSql query optimization, so i want to know how to handle metadata of PostgreSql. Can anyone pls tell me how to do it?
Plz reply asap.
Regards,
Aditi.
Reply With Quote
  #2 (permalink)  
Old 11-12-11, 04:19
andurkar andurkar is offline
Registered User
 
Join Date: Sep 2011
Posts: 9
Actually I need to know 'how' a table and its attributes get stored in the database whenever i write 'create table' query. I have understood parsing phase but i want to know after parsing which files are accessed exactly for creating & storing the table?
Reply With Quote
  #3 (permalink)  
Old 11-23-11, 13:42
loquin loquin is offline
Super Moderator
 
Join Date: Jun 2004
Location: Arizona, USA
Posts: 1,797
In regardsa to metadata, take a look at the "Information Schema" in the documentation.

As far as the table creation... When a table is created, it is assigned a table OID (Object ID) number, which is a 32 bit integer, and which can be found in the metadata. That integer is then used in creating the file which contains the table data. The location of the file is determined by the tablespace which it is assigned. The tablespace is, of course, a named folder path.
__________________
Lou
使大吃一惊
"Lisa, in this house, we obey the laws of thermodynamics!" - Homer Simpson
"I have my standards. They may be low, but I have them!" - Bette Middler
"It's a book about a Spanish guy named Manual. You should read it." - Dilbert

Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On