Why there is a union in HeapTupleHeaderData struct

From: Soroosh Sardari <soroosh(dot)sardari(at)gmail(dot)com>
To: PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Why there is a union in HeapTupleHeaderData struct
Date: 2013-05-20 07:28:16
Message-ID: CAFUsPDaD1yTJ0KmRUaAOt80ULBe-LhkWpmSYTU2ZgxnKKLecFQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Dean Rasheed 2013-05-20 07:50:29 Re: [9.3] Automatically updatable views vs writable foreign tables
Previous Message amul sul 2013-05-20 07:01:34 Re: Proposal to add connection request Wait-time in PSQL client.