~/talk

Hard-won lessons after processing 6.7T events through Postgre queues

Talkat PGConf India 2026 · 2026-03-11..03-13· [databases, data-engineering]
links:none on file
slides:none on file

RudderStack details running PostgreSQL as a queue at 100,000 events/sec and 6.7T total events, using 100k-row data sets and a cron compaction that prefers drop table over delete to eliminate bloat. Key tactics: switch from row INSERTs to copy bulk load, use recursive CTEs for loose index scans to cut a 145ms query to 1ms, cache empty-pipeline checks to eliminate 95% of pointless queries, and tune Postgres (auto‑vacuum frequency, random_page_cost=1.1, max_wal_size=2GB, wal_buffers=64MB).

AI-written summary · about

  1. 0:00Introduction and context
  2. 3:57Why Postgres over Kafka
  3. 6:25Query performance and indexing issues
  4. 9:54Bulk inserts and retry storms
  5. 15:14Empty queue penalty and caching
  6. 17:41Driver optimizations and data transfer
  7. 20:48Shared buffers and IOPS limits
  8. 22:12Postgres configuration tuning
  9. 23:35Key takeaways and summary
~/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.