Re: Help extending pg_class - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Help extending pg_class
Date
Msg-id 19539.1103557807@sss.pgh.pa.us
Whole thread Raw
In response to Help extending pg_class  (overbored <overbored@overbored.net>)
List pgsql-hackers
overbored <overbored@overbored.net> writes:
> Hi all, I added a new variable-length field to the pg_class catalog, but 
> I did something wrong, and I can't tell what else I'd need to change.
> ...
> The REVOKE command invokes ExecuteGrantStmt_Relation() to modify the 
> relacl attribute of pg_class, which is the last attribute and also 
> var-length. My new field is interfering with this operation somehow. For 
> some reason, in frame 2, the new 'value' array is allocated with length 
> numberOfAttributes = RelationGetForm(relation)->relnatts = 25, instead 
> of 26.

I think that would come from Natts_pg_class (via formrdesc()).  Are you
sure you updated pg_class completely, did a full rebuild, and an initdb?
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Shared row locking
Next
From: "Merlin Moncure"
Date:
Subject: Re: Shared row locking