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

Memory Management


All memory is part of a memory context


Allocated through palloc()


Contexts exist for most of what you would expect


CurrentMemoryContext - what palloc() will use


TopMemoryContext - Backend Lifetime


Per-Query Context


Per-Tuple Context

Free download pdf