[prev] 24 [next]

PostgreSQL Attribute Values

Values of attributes in PostgreSQL tuples are packaged as Datums

// representation of a data value
typedef uintptr_t Datum;

The actual data value:

  • may be stored in the Datum (e.g. int)
  • may have a header with length (for varlen attributes)
  • may be stored in a TOAST file (if large value)