Top.Mail.Ru
Improving Postgres' Buffer Manager (Andres Freund) | PgConf.Russia 2016 | PGConf.Russia

title

text

Andres  Freund
Andres Freund Citus Data
12:00 04 February
45 min

Improving Postgres' Buffer Manager

Postgresql's buffer manager has parts where it's showing its age. We'll discuss how it currently works, what problems there are, and what attempts are in progress to rectify its weaknesses.

  • Lookups in the buffer cache are expensive
  • The buffer mapping table is organized as a hash table, which makes efficient implementations of prefetching, write coalescing, dropping of cache contents hard
  • Relation extension scales badly
  • Cache replacement is inefficient
  • Cache replacement replaces the wrong buffers

Slides

Video

Other talks