~/talk

Scaling Postgres to the next level at OpenAI

Talkat POSETTE: An Event for Postgres 2025 · 2025-06-10..06-12· [databases]
slides:none on file

OpenAI runs an unsharded Azure Database for PostgreSQL primary with many read replicas and migrates write-heavy workloads off-system, using PgBouncer to avoid a hard 5,000 connection limit and cut connection latency from 50ms to <5ms. Rate limiting on query digests and connection creation, dedicated replicas for high‑priority traffic, strict schema rules (only nullable columns, no table rewrites, concurrent index changes), timeouts like idle_in_transaction_session_timeout plus statement and client timeouts, and pg_stat_activity checks for blockers keep reads fast and avoid SEV0s.

AI-written summary · about

  1. 0:00Introduction
  2. 1:35Background – how Postgres was scaled to meet demand at OpenAI
  3. 4:02Challenges in write-heavy workloads
  4. 5:49How read-heavy workloads are served by unsharded Postgres
  5. 6:19Reduce load on primary
  6. 9:09Query optimization
  7. 11:58Single point of failure
  8. 15:03Rate limit
  9. 17:46Connection pooling
  10. 19:53Schema management
  11. 23:40Wrap-up
~/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.