~/talk

Multi-threaded PostgreSQL?

Talkat PGConf.dev 2024 · 2024-05-28..05-31· [databases]
links:none on file
slides:none on file

Proposal to move PostgreSQL from multiprocess to a single-address-space, one thread per connection model that immediately uses fewer TLBs and cheaper forks by replace fork with posix_create. Plan requires annotating ~2–4k global variables, a clang plugin to list unannotated globals, rewriting signal handling and FD subsystems, adding an extension control flag for thread safety, and a babysitter postmaster process for crash isolation. Benefits: easier shared caches, dynamic resizing, built-in connection pooling; risks: long-lived memory leaks, extension porting, and a transition over one to three releases.

AI-written summary · about

  1. 0:00Introduction
  2. 1:30Multiprocess vs multithreaded
  3. 10:21Objections to multithreading
  4. 28:09Previous attempts
  5. 31:02Implementation plan
  6. 46:21Challenges and next steps
  7. 49:53Q&A and conclusion
~/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.