RE: PGSQL internals question...

From: "Hiroshi Inoue" <Inoue(at)tpf(dot)co(dot)jp>
To: "Chris Bitmead" <chrisb(at)nimrod(dot)itg(dot)telstra(dot)com(dot)au>
Cc: <pgsql-hackers(at)postgreSQL(dot)org>, "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Subject: RE: PGSQL internals question...
Date: 2000-06-23 08:35:53
Message-ID: 000a01bfdcee$0ad32480$2801007e@tpf.co.jp
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> -----Original Message-----
> From: pgsql-hackers-owner(at)hub(dot)org [mailto:pgsql-hackers-owner(at)hub(dot)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(at)tpf(dot)co(dot)jp

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Kovacs Zoltan Sandor 2000-06-23 10:54:13 Re: problem with ALTER GROUP
Previous Message Chris Bitmead 2000-06-23 06:44:55 Re: PGSQL internals question...