Skip to main content

Postgres configuration settings

Requirements

RequirementDescription
Postgres versionShould be 12+
ParagraphText

Configuration settings

shared_buffers

Postgres doesn't work directly with storage system - only via cache buffer. Then wal logs write to disc. When service is trying to select data from table - it means that firstly data will be queried from buffer -> system file cache -> disc Shared buffer divided between all postgres server processes.

Simple calculator:

  • 1/4 server RAM
  • vmstat for fine tuning

work_mem