Why there is a union in HeapTupleHeaderData struct - Mailing list pgsql-hackers

From Soroosh Sardari
Subject Why there is a union in HeapTupleHeaderData struct
Date
Msg-id CAFUsPDaD1yTJ0KmRUaAOt80ULBe-LhkWpmSYTU2ZgxnKKLecFQ@mail.gmail.com
Whole thread Raw
Responses Re: Why there is a union in HeapTupleHeaderData struct  (Amit Langote <amitlangote09@gmail.com>)
List pgsql-hackers
Dear Hackers

In fix part oh HeapTuple, there is a union that is named t_choice,
union
    {
        HeapTupleFields t_heap;
        DatumTupleFields t_datum;
    }            t_choice;

I can't find out why we need t_datum, actually there is no comment about DatumTupleFields.

Regards
Soroosh


pgsql-hackers by date:

Previous
From: amul sul
Date:
Subject: Re: Proposal to add connection request Wait-time in PSQL client.
Next
From: Dean Rasheed
Date:
Subject: Re: [9.3] Automatically updatable views vs writable foreign tables