~/talk

PGTracer: A Tracing Tool for Postgres Backends

Talkat PGCon 2023 · 2023-05-30..06-02· [databases, observability]
links:none on file
slides:none on file

PGTracer is a root-run tool that uses eBPF plus DWARF debug symbols to attach to a running Postgres backend, dump live query text, buffer and IO stats, and reconstruct per-query execution plans by correlating node events with stack samples. It compiles per-instance eBPF, supports tracing a single PID or the whole cluster, can toggle instrumentation and even overwrite global variables in-process, and shows kernel‑vs‑cache IO. Works in demos but needs matching kernel headers, CAP_SYS_ADMIN, and hits eBPF verifier and sampling limits.

AI-written summary · about

  1. 0:00Start
  2. 0:29ABOUT MYSELF
  3. 1:05QUICK SURVEY!
  4. 13:30Example
  5. 19:21DWARF
  6. 37:38FUN THINGS ABOUT WORKING WITH EBPF
  7. 40:27QUESTIONS?
~/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.