PostgreSQL Attribute Values (cont)
Attribute values can be extracted as Datum from HeapTuple s
Datum heap_getattr(
HeapTuple tup,
int attnum,
TupleDesc tupDesc,
bool *isnull
)
|
isnull is set to true if value of field is NULL
attnum can be negative ... to access system attributes (e.g. OID)
For details, see include/access/htup_details.h
|