~/talk

Queues in PostgreSQL

Talkat Citus Con: An Event for Postgres 2022 · 2022-04-12..04-13· [databases]
slides:none on file

Argues PostgreSQL is a practical choice for moderate single-node job queues when work must be transactional and ops already manage the database. Recommends using FOR UPDATE SKIP LOCKED to avoid lock serialization and LISTEN/NOTIFY to wake workers, warns of thundering herd effects, B-tree churn, vacuum tuning, and 32-bit key exhaustion. Notes SERIALIZABLE isolation kills concurrency for queues, shows throughput improves with SKIP LOCKED, and proposes conveyor-belt storage or circular scans as future fixes.

AI-written summary · about

  1. 0:00Introduction
  2. 3:19What is a queue?
  3. 5:36Why put a queue in an RDBMS
  4. 7:32Example queue use cases
  5. 9:26How would you build a queue in Postgres
  6. 15:34Complications with queue processing in Postgres
  7. 19:09What could we do better to improve Postgres queue processing?
  8. 24:20Q&A with Thomas & Aaron
~/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.