How to add column in pg_class
От | Rafaqat Ali |
---|---|
Тема | How to add column in pg_class |
Дата | |
Msg-id | b15f5be205090522071fe167e2@mail.gmail.com обсуждение исходный текст |
Ответы |
Re: How to add column in pg_class
|
Список | pgsql-hackers |
<pre><font size="4"><span style="font-family: times new roman,serif;">Hello <br /> can any one tell me how can I adda new cloumn in pg_class<br /><br style="font-family: times new roman,serif;" /></span><span style="font-family: timesnew roman,serif;"> Currently I am doing :<br /> In pg_class.h<br /><br /> * In CATALOG(pg_class) BOOTSTRAP define the variable [var-name]<br/> * define a variable for [var-name] as<br /> #define Anum_pg_class_[var-name] [value]<br/> * And pass default value to DATA macro for that variable. <br /> * Change the value of <br /> Natts_pg_class_fixed from 25 to 26<br /> Natts_pg_class from 26 to 27.<br/><br /><br /> In pg_attribute<br /> * in #define Schema_pg_class added proper values for that [var-name].<br/> * Then provided value to DATA macro for [var-name]. <br /><br /> In heapam.c<br /> I add 0 in pg_class for that variable and perform simple heap_update for relatedtuple in pg_class..<br /> In this way<br /> 1. when I add variable after relacl in pg_class,it adds null for [var-nam] for tuples added in initdb. <br /> 2. when I creates a new table, it does not add the values I specified.<br /><br /> When I placeit before relacl, initdb exits with a segmentation fault.<br /> Is there any other file in which I have to makechange ????? <br /><br /> Regards<br /> Rafaqat Ali<br /></span></font></pre>
В списке pgsql-hackers по дате отправления: