~/talk

Psycopg: 20 years of mostly friendly coexistence with libpq

Talkat PGConf.dev 2026 · 2026-05-19..05-22· [databases]
links:none on file
links:none on file
slides:none on file

Psycopg is a libpq wrapper that keeps encountering concrete gaps: pipeline mode exists at the wire level since 2003 but lands in libpq in 2021 and takes months of redesign to integrate successfully; logical replication forces low‑level parsing and keep‑alive heuristics that clients must reimplement, so a PG output decoder in libpq would cut repeated work; asynchronous connections require redoing multi‑host timeouts, service parsing and DNS ordering in Python; GSSAPI causes distro segfaults so psycopg3 disables it by default; OAuth device flow was easier to reimplement in ~60 Python lines than accept 3,000 C lines.

AI-written summary · about

  1. 0:00Introduction and background
  2. 3:35Pipeline mode in libpq
  3. 8:10Replication and protocol challenges
  4. 18:44Asynchronous support limitations
  5. 25:50Authentication and OAuth flows
  6. 35:25OAuth feature design debate
  7. 39:16Who is libpq designed for?
  8. 42:24Future evolution of libpq
  9. 45:19Conclusion and Q&A
~/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.