High memory usage in Postgres is good, actually
Mar 30, 2026Simeon Griggs

Summary
This post clarifies that high memory usage in Postgres is often beneficial due to caching mechanisms (shared_buffers and OS page cache). It distinguishes between reclaimable cache memory and non-reclaimable RSS (Resident Set Size). High RSS is identified as the primary cause of memory pressure and OOM events. The post outlines a debugging strategy for performance degradation by correlating metrics from Cluster Metrics, Query Insights, and EXPLAIN (ANALYZE, BUFFERS, MEMORY) to pinpoint the source of RSS growth, and highlights efficient connection pooling (e.g., PgBouncer in transaction mode) as a method to reduce RSS.