Optimising PostgreSQL Memory Configuration
tomfos.tr·1w·
Discuss: Hacker News
🗄️PostgreSQL WAL
Preview
Report Post
  1. Shared Buffers
  2. Shared Memory
  3. Effective Cache Size
  4. Working Memory
  5. Maintenance Work Memory

Memory plays a pivotal role in the performance of your PostgreSQL database, as does using it efficiently in the right places. Having terrabytes of RAM would undoubtedly speed things up, but the benefit typically drops off quickly after a few gigabytes.

The shared_buffers setting determines the amount of memory allocated for PostgreSQL to use for caching data. This cache is critical because it allows frequently accessed data to be served directly from memory, which is much faster than reading from disk.

postgresql.conf

# Set the amount of memory the database server ...

Similar Posts

Loading similar posts...