Re: Help extending pg_class

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Help extending pg_class
Дата
Msg-id 19539.1103557807@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Help extending pg_class  (overbored <overbored@overbored.net>)
Список 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 по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Shared row locking
Следующее
От: "Merlin Moncure"
Дата:
Сообщение: Re: Shared row locking