~/talk

The Wire Protocol

Talkat PostgreSQL Conference Europe 2024 · 2024-10-22..10-25· [databases]
links:none on file
slides:none on file

Postgres uses Protocol version 3 with messages framed as a 1‑byte type plus a 4‑byte length (length excludes the type byte); startup packet includes protocol=3, database, user and an extensions list. Connection setup supports SSLRequest TLS or direct TLS from v17, SCRAM and cleartext (used e.g. by LDAP), and the server sends backend key data used for query cancellation via a separate TCP cancel request that today uses a 4‑byte secret token (planned to be enlarged). Queries use simple or extended flow (Parse/Bind/Describe/Execute then Sync), COPY has in/out/both modes, and replication runs over the same wire with start_replication entering a copy_both mode that streams WAL chunks; Wireshark is recommended for tracing.

AI-written summary · about

  1. 0:00Introduction to Wire Protocol
  2. 12:23Query Protocols Overview
  3. 29:26Copy Protocol for Data Transfer
  4. 34:02Replication Protocol Basics
  5. 39:22Query Cancellation Mechanism
  6. 41:30Connection Pooling Considerations
  7. 43:38Protocol Extensibility Plans
  8. 46:45Q&A Session
~/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.