Module pgrx_pg_sys::submodules::datum
source · Structs§
- Datum is an abstract value that is effectively a union of all scalar types and all possible pointers in a Postgres context. That is, it is either “pass-by-value” (if the value fits into the platform’s
uintptr_t
) or “pass-by-reference” (if it does not). - This struct consists of a Datum and a bool, matching Postgres’s definition as of Postgres 12. This isn’t efficient in terms of storage size, due to padding, but sometimes it’s more cache-friendly, so sometimes it is the preferred type.