RE: PGSQL internals question...

Поиск
Список
Период
Сортировка
От Hiroshi Inoue
Тема RE: PGSQL internals question...
Дата
Msg-id 000a01bfdcee$0ad32480$2801007e@tpf.co.jp
обсуждение исходный текст
Ответ на Re: PGSQL internals question...  (Chris Bitmead <chrisb@nimrod.itg.telstra.com.au>)
Список pgsql-hackers
> -----Original Message-----
> From: pgsql-hackers-owner@hub.org [mailto:pgsql-hackers-owner@hub.org]On
> Behalf Of Chris Bitmead
> 
> Would a non-existant attribute have a system attribute number? Where do
> you suggest this code should be that "pulls it out"?
>

CTID has a system attribute number SelfItemPointerAttributeNumber(-1).
Different from other system attributes it corresponds to an item(t_self)
in HeapTupleData not to an item(t_ctid) in HeapTupleHeaderData.
Please look at include/access/htup.h.
Probably heap_xxxx() functions in access/heap/heapam.c would have
to fill in the new system attribute. 

Regards.

Hiroshi Inoue
Inoue@tpf.co.jp 


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Chris Bitmead
Дата:
Сообщение: Re: PGSQL internals question...
Следующее
От: Kovacs Zoltan Sandor
Дата:
Сообщение: Re: problem with ALTER GROUP