~/talk

pgcov: Bringing Real Test Coverage to PostgreSQL Code

Talkat POSETTE: An Event for Postgres 2026 · 2026-06-16..06-18· [databases]
slides:none on file

pgcov instruments SQL and PL/pgSQL by injecting pg_notify calls before executable statements, listens for those notifications to map executed byte ranges, and emits JSON/HTML/LCOV reports; it runs as a single binary with run and report commands, requires no extensions required or psql, spawns an isolated temporary DB per test, and targets Postgres 13+. Example demo shows coverage rising from 50% to 70% after adding two test cases; CI-friendly, not a profiler or migration tool.

AI-written summary · about

  1. 0:00Music & introduction
  2. 1:21The PostgreSQL coverage gap explained
  3. 3:21Current testing approaches & limits
  4. 5:25Why coverage matters
  5. 6:48Designing a Postgres coverage tool: pgcov
  6. 8:54pgcov ooverview & key features
  7. 9:28How pgcov works under the hood
  8. 12:54Demo: inventory system example
  9. 15:02Running pgcov and reading results
  10. 18:25Improving tests to boost coverage
  11. 20:18pgcov command options
  12. 22:05Limitations and future roadmap
  13. 23:46Final thoughts
~/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.