Re: [HACKERS] Modification to the postgres catalog

2006-10-12 Thread Carlos Chacon
Tom, Hi. Sorry that i can't response your message soon... i lost my internet connection...But you were right... I forgot to modify the relnatts of the pg_class table in DATA line for it... that was crashing the "initdb" command Thanks... if you don't remind me of that, i would never see it...By

Re: [HACKERS] Modification to the postgres catalog

2006-10-11 Thread Tom Lane
"Carlos Chacon" <[EMAIL PROTECTED]> writes: > But i modify too Natts_pg_class and the Anum macro...Only I forgot > mentionated it in the last mail. i put: OK ... did you add a suitable initial value to each of the DATA lines in pg_class.h? Did you remember to adjust pg_class's own relnatts field

Re: [HACKERS] Modification to the postgres catalog

2006-10-11 Thread Carlos Chacon
Thanks for you help...But i modify too Natts_pg_class and the Anum macro...Only  I forgot mentionated it in the last mail. i put:#define Natts_pg_class_fixed            25#define Natts_pg_class                    26 #define Anum_pg_class_myNewAttribute        25#define Anum_pg_class_relacl     

Re: [HACKERS] Modification to the postgres catalog

2006-10-11 Thread Tom Lane
"Carlos Chacon" <[EMAIL PROTECTED]> writes: > HI... im trying to modify the pg_class table by adding a new > attribute. > - include/pg_class.h: in this file, i modfify: Did you remember to update Natts_pg_class and the Anum_ macros? > then, i modify the macro "CLASS_TUPLE_SIZE": > #define C

[HACKERS] Modification to the postgres catalog

2006-10-11 Thread Carlos Chacon
HI... im trying to modify the pg_class table by adding a new attribute. To accomplish that, i modify the next archives:- include/pg_class.h: in this file, i modfify:  FormData_pg_class struct: i add the new attribute, example a boolean...    .   bool myNewAttribute;   /*my new attribute