Re: Questions about HeapTupleHeaderData - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Questions about HeapTupleHeaderData
Date
Msg-id 29632.1219244226@sss.pgh.pa.us
Whole thread Raw
In response to Questions about HeapTupleHeaderData  (Zdenek Kotala <Zdenek.Kotala@Sun.COM>)
Responses Re: Questions about HeapTupleHeaderData  (Zdenek Kotala <Zdenek.Kotala@Sun.COM>)
List pgsql-hackers
Zdenek Kotala <Zdenek.Kotala@Sun.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


pgsql-hackers by date:

Previous
From: Zdenek Kotala
Date:
Subject: Questions about HeapTupleHeaderData
Next
From: Andrew Sullivan
Date:
Subject: Re: Patch: plan invalidation vs stored procedures