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 > system tables : pg_class,pg_attribute

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-29-12, 12:46
andurkar andurkar is offline
Registered User
 
Join Date: Sep 2011
Posts: 9
Unhappy system tables : pg_class,pg_attribute

hey all,
I have added an attribute to pg_class system table and that attribute is visible in pg_class when i run 'select * from pg_class' but it is not visible in pg_attribute.
Each & every attribute of every relation is entered in pg_attibute table. So all attributes of pg_class are visible in pg_attribute except the one i have entered.
Can anyone help me ?? Plz reply asap.
Regards,
Aditi
Reply With Quote
  #2 (permalink)  
Old 01-29-12, 13:25
shammat shammat is offline
Registered User
 
Join Date: Nov 2003
Posts: 2,408
Never, ever change system tables directly. The only way to add a column is to use ALTER TABLE.
Reply With Quote
  #3 (permalink)  
Old 01-30-12, 04:42
andurkar andurkar is offline
Registered User
 
Join Date: Sep 2011
Posts: 9
Hey,

I know what u r trying to say but I want to make some changes in system table which i have already done but they are not getting reflected when I run a query.

Regards,
Aditi
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