Ways to reduce the memory footprint of connections
summary
Postgres session memory concentrates in the relation cache (over 50% of an idle backend’s context), and the proposal quantifies fixes: aliasing subtype-only fields to reclaim about 128 bytes per index-shaped struct, deduplicating tuple descriptors and index metadata to cut roughly 10% memory on an empty cluster, making index-am routine pointers static (landed for Postgres 19), and using a proxy to malloc or alternative memory-context strategies to avoid aset overallocation.
AI-written summary · about
