Re: Questions about HeapTupleHeaderData

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Zdenek Kotala <Zdenek(dot)Kotala(at)Sun(dot)COM>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Questions about HeapTupleHeaderData
Date: 2008-08-20 14:57:06
Message-ID: 29632.1219244226@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Zdenek Kotala <Zdenek(dot)Kotala(at)Sun(dot)COM> writes:
> I try to understand why HeapTupleHeaderData structure has t_datum
> member. This is use only on few places and from my point of view this
> information should be stored in the HeapTupleData structure or split
> HeapTupleHeaderData it into two structures (DatumTupleHeaderData).

Then (a) we'd have two struct definitions that have to stay in sync
and (b) we'd have to cast between HeapTupleHeader and DatumTupleHeader
pointer types in a bunch of places, adding notational messiness with
no advantage.

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Andrew Sullivan 2008-08-20 15:03:14 Re: Patch: plan invalidation vs stored procedures
Previous Message Zdenek Kotala 2008-08-20 14:48:22 Questions about HeapTupleHeaderData