~/talk

The "default" postgresql.conf, step by step

Talkat PGCon 2020 · 2020-05-26..05-29· [databases]
slides:none on file

Step-by-step, the default postgresql.conf gets concrete, actionable settings: shared_buffers = ~25% of RAM (or much higher only if DB fully fits RAM), max_connections ~100–200 with 5–10 superuser reserve, enable huge_pages when using large shared_buffers, set checkpoint_completion_target = 0.9 and checkpoint timeout ≈ 1 hour, tune work_mem (~100MB baseline) and autovacuum (threshold 50 rows or 5%, autovacuum_max_workers up to ~10), prefer effective_cache_size ≈ 2×shared_buffers, enable pg_stat_statements and sensible logging. These choices reflect multi-client practical experience.

AI-written summary · about

  1. 0:00Welcome and introduction
  2. 1:56PostgreSQL conf overview
  3. 9:06Editing postgresql.conf safely
  4. 10:53Listen address and security
  5. 12:19Max connections and process limits
  6. 15:11TCP keepalive settings
  7. 15:33Shared buffers basics
  8. 20:14Huge pages explained
  9. 25:34Configuring huge pages in Linux
  10. 27:44Work memory settings
  11. 31:14Maintenance work memory
  12. 32:58Auto vacuum work memory
  13. 34:00Auto vacuum cost limits
  14. 34:44WAL and checkpoint basics
  15. 36:32Checkpoint timeout settings
  16. 37:55Max WAL size and recovery
  17. 38:59Checkpoint completion target
  18. 40:26Background writer tuning
  19. 41:51Effective I/O concurrency
  20. 43:15Effective cache size
  21. 44:40Default statistics target
  22. 45:02Auto vacuum deep dive
  23. 46:29Auto vacuum threshold settings
  24. 47:14Auto vacuum nap time and workers
  25. 48:37Auto vacuum analyze settings
  26. 49:42Transaction ID wraparound
  27. 54:14Logging configuration
  28. 57:25pg_stat_statements setup
  29. 58:31Q&A and closing
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.