~/talk

Scaling PostgreSQL: Horizontal vs. Vertical

Talkat Postgres Conference Orlando 2025 · 2025-03-18..03-21· [databases]
linkedin:ibrarahmed74
slides:none on file

Compares concrete tuning and replication choices: tune shared_buffers 25–40% (can be higher), set work_mem is per session and multiplies (e.g., raising work_mem to 1 GB halves sort time for that session), and use maintenance_work_mem to speed index builds (500× memory gave ~2× faster index create in an example). Recommends pgBouncer for thousands of connections, HAProxy and Patroni for failover, pg_backrest for backups, and notes replication tradeoffs: physical replicas are read-only; logical replication is table-level only and lacks built-in conflict resolution, so use extensions for multi-master.

AI-written summary · about

  1. 0:00PostgreSQL scaling strategies
  2. 1:23Vertical scalability in PostgreSQL
  3. 8:15PostgreSQL architecture & memory
  4. 13:16Vertical scaling parameters
  5. 23:59Indexing for performance
  6. 29:46Horizontal scalability in PostgreSQL
  7. 33:27Replication methods
  8. 37:01Logical replication limits
  9. 41:57High availability clusters
  10. 47:14Load balancing & failover
  11. 50:01Backup strategies
  12. 51:04PG Bouncer pooling
  13. 52:28Combining scaling approaches
~/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.