PostgreSQL · Talks · Connections
The Postgres Mistakes We All Still Make
Slides from my NYC Postgres Meetup talk — connections, MVCC, idle transactions, bulk deletes and unused indexes, each with the query that finds it.
On November 18 I gave The Postgres Mistakes We All Still Make at the NYC Postgres Meetup.
“It’s always connections”
Many thanks to my employer, Databricks, for use of our large multi-purpose room near Times Square! Attendance was about 35, and we ended up going 35 minutes over with lots of discussion. Thanks to all who attended. Find the slides below.
The thread through the whole talk: it’s always connections. On my laptop, Postgres 17 ran about 215,000 simple transactions a second over persistent connections, 1,415 when the app connected for every transaction, and 31,000 through pgbouncer. From there it’s MVCC and the rows that never fit back, idle-in-transaction sessions pinning vacuum, bulk DELETE instead of partitioning, and unused indexes that quietly turn off HOT updates. Every mistake comes with the query that detects it and the fix.
The demo SQL is in the talks repo, including 00_bubble_up.sql: one query that checks for every mistake in the talk.
