Hacking PostgreSQL

(Jeff_L) #1
PostgreSQL Source Code
Hacking PostgreSQL
Final Code
PostgreSQL Subsystems
Hacking the PostgreSQL Way

Memory Management
Error Handling / Logging
Catalog Lookups
Nodes
Datums and Tuples
Other Subsystems

Tuples


Tuples are essentially ”rows”, comprised of Datums and other things


Heap Tuple defined in include/access/htup.h


HeapTupleData is in-memory construct


Provides length of tuple, pointer to header


Many different uses


Pointer to disk buffer (must be pin’d)


Empty


Single pmalloc’d chunk


Seperately allocated


Minimal Tuple structure

Free download pdf