RE: PGSQL internals question... - Mailing list pgsql-hackers

From Hiroshi Inoue
Subject RE: PGSQL internals question...
Date
Msg-id 000a01bfdcee$0ad32480$2801007e@tpf.co.jp
Whole thread Raw
In response to Re: PGSQL internals question...  (Chris Bitmead <chrisb@nimrod.itg.telstra.com.au>)
List 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 by date:

Previous
From: Chris Bitmead
Date:
Subject: Re: PGSQL internals question...
Next
From: Kovacs Zoltan Sandor
Date:
Subject: Re: problem with ALTER GROUP