[prev] 70 [next]

PostgreSQL Tuples (cont)

Tuple-related data types: (cont)

typedef struct HeapTupleFields  // simplified
{
    TransactionId t_xmin;  // inserting xact ID
    TransactionId t_xmax;  // deleting or locking xact ID
    CommandId     t_cid;   // inserting/deleting command ID
} HeapTupleFields;

Note that not all system fields from stored tuple appear

  • both xmin/xmax are stored, but only one of cmin/cmax