~/talk

PostgreSQL Configuration for Humans

Talkat HighLoad++ 2017 · 2017-11-07..11-08· [databases]
slides:none on file

PostgreSQL ships with ~270 tunable parameters and a 650‑line sample postgresql.conf, and changing about 15 settings on an 8GB/2CPU EC2 instance raises throughput by 40–50% TPS while keeping latency lower; indiscriminately increasing max_connections spikes latency to ~1.5s, so use a pooler and aim for ~50–100 usable connections. Guidance covers shared_buffers, work_mem, autovacuum/maintenance_work_mem, checkpoint/ bgwriter tuning, random_page_cost for SSDs, and a new drag-and-drop web UI that generates recommendations and a REST API (beta).

AI-written summary · about

  1. 0:00Introduction
  2. 6:00Reasons to tune
  3. 7:50Performance tuning
  4. 9:05Performance comparison
  5. 10:15Latency
  6. 10:45Tuning
  7. 12:30tunable parameters
  8. 12:45some ideas
  9. 13:55executable
  10. 19:15connectionpooler
  11. 21:48shared buffers
  12. 23:35workmaam
  13. 28:13max parameters
  14. 30:00autovacuum
  15. 32:46tuning autovacuum
  16. 33:48tuning backgroundwriter
  17. 35:43logging
  18. 36:33password encryption
  19. 39:16PGTune
  20. 40:13PostgreSQL Code F
  21. 41:49Beta Testers
  22. 42:14Large Table
  23. 43:11Troubleshooting Slow Queries
  24. 47:14Vacuum Tuning
  25. 48:55Synchronous Commit
  26. 50:49SSD Parameters
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.