PostgreSQL shared_buffers eviction machinery explained
This article explores the internal machinery of PostgreSQL's shared_buffers parameter, detailing how the database allocates memory slots, manages page caching, and uses a clock-sweep algorithm to evict pages. The author examines how scan strategies, background writers, and the operating system's underlying page cache interact with PostgreSQL memory management to influence performance. Open article →