Re: doubt about datum - Mailing list pgsql-novice

From Luca Ferrari
Subject Re: doubt about datum
Date
Msg-id 200708061657.29783.fluca1978@infinito.it
Whole thread Raw
In response to Re: doubt about datum  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: doubt about datum
List pgsql-novice
On Tuesday 31 July 2007 Tom Lane's cat, walking on the keyboard, wrote:
> > Moreover why it does not need transaction
> > visibility as an ordinary tuple (xmin, cmin, cmax, xmax)?
>
> Datums are values.  '42'::int does not need visibility information;
> its value is always the same.

Maybe I understand something more, but I'm still in doubt about the tuple
header. In the htup.h file you find:

typedef struct HeapTupleHeaderData
{
    union
    {
        HeapTupleFields t_heap;
        DatumTupleFields t_datum;
    }            t_choice;
        ....
}

maybe I cannot get the meaning of the above t_datum in the tuple header, can
anyone explain me that?

Thanks,
Luca

pgsql-novice by date:

Previous
From: Sten Daniel Soersdal
Date:
Subject: Re: Atomic/locked "allocation" of table row?
Next
From: Tom Lane
Date:
Subject: Re: Atomic/locked "allocation" of table row?