~/talk

The PostgreSQL Protocol: The Good, the Bad and the Future

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

Protocol v3 is still the wire standard after 20+ years and uses messages like parse/bind/describe/execute for prepared flows and a ready for query I/T/E status byte that lets poolers know transaction state. Current quirks: copy ignores sync until copy done, cancellation requires a separate TCP connection with a 32-bit cancel token, and clients often need an extra round trip to request binary formats. Proposed changes include direct TLS in Postgres 17, lz4 compression, an “auto” binary-format setting, longer cancel tokens, cheaper out‑of‑band cancellations, and columnar/smaller-row encodings with 4–8× throughput gains.

AI-written summary · about

  1. 0:00Introduction
  2. 0:34Protocol basics
  3. 1:59Protocol usage and design
  4. 6:33Startup and handshake
  5. 13:01Query execution
  6. 22:43Client library limitations
  7. 23:58Copy protocol
  8. 25:55Cancellation protocol
  9. 27:36Modernizing the protocol
  10. 28:55Direct TLS and connection
  11. 32:59Compression
  12. 34:11Efficiency and row formats
  13. 37:30Session state and parameter reporting
  14. 40:28Future protocol evolution
  15. 46:45Conclusion
~/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.