Postgres memory management focuses on understanding the difference between cache and process memory (RSS). High cache usage is good, indicating data is readily available to the CPU. High RSS, however, signifies memory pressure and potential OOM risks. The post details how to investigate performance degradation by correlating Cluster Metrics, Query Insights, and EXPLAIN (ANALYZE, BUFFERS, MEMORY) to identify the root cause of RSS growth, emphasizing efficient connection pooling as a key strategy to reduce RSS.
All PlanetScale trails