pgcov: Bringing Real Test Coverage to PostgreSQL Code | POSETTE: An Event for Postgres 2026 @MicrosoftDeveloper
pgcov: Bringing Real Test Coverage to PostgreSQL Code | POSETTE: An Event for Postgres 2026  @MicrosoftDeveloper
Uploaded June 2026 | Updated September 2026, 2 weeks ago
How do you know which parts of your database code are actually executed during tests? See how real test coverage can be brought to PostgreSQL code. Pavlo Golub (Cybertec) presents his talk “pgcov: Bringing Real Test Coverage to PostgreSQL Code” at POSETTE: An Event for Postgres 2026. Abstract: We rely heavily on PostgreSQL functions, procedures, and SQL logic, yet we largely test them as black boxes. Tests may pass, but we rarely know what actually executed and what code paths remain untested.

pgcov proposes a missing piece in the PostgreSQL tooling ecosystem: coverage analysis for SQL and PL/pgSQL, similar to what go test -cover or pytest --cov provides for application code.

The idea is simple:
- treat SQL as first-class source code,
- run isolated tests against it,
- instrument execution at the SQL/PLpgSQL level,
- and produce actionable coverage reports.

pgcov does not require PostgreSQL extensions, does not depend on psql, and is designed to integrate naturally into CI/CD pipelines. It complements existing testing tools like pgTAP by answering a different question:

“Which parts of our database code are actually tested?”

This talk explores the motivation, design approach, and how pgcov can significantly improve confidence in database-centric systems without changing how we write PostgreSQL code today.

Pavlo Golub is a PostgreSQL contributor and co-organizer of PostgreSQL Ukraine User Group, as well as Senior Developer and Expert at Cybertec. He is the author and maintainer of pgxmock library and a scheduling solution for PostgreSQL written in Go called pg_timetable.

► Video chapters:
⏩ 00:00 – Music & introduction
⏩ 01:21 – The PostgreSQL coverage gap explained
⏩ 03:21 – Current testing approaches & limits
⏩ 05:25 – Why coverage matters
⏩ 06:48 – Designing a Postgres coverage tool: pgcov
⏩ 08:54 – pgcov ooverview & key features
⏩ 09:28 – How pgcov works under the hood
⏩ 12:54 – Demo: inventory system example
⏩ 15:02 – Running pgcov and reading results
⏩ 18:25 – Improving tests to boost coverage
⏩ 20:18 – pgcov command options
⏩ 22:05 – Limitations and future roadmap
⏩ 23:46 – Final thoughts

📕 Everything you need to know about POSETTE: An Event for Postgres can be found at: posetteconf.com
✅ Learn more: watch more POSETTE talks: https://aka.ms/posette-playlist

📌 Let’s connect:
LinkedIn: linkedin.com/company/posetteconf
X – @PosetteConf, https://x.com/PosetteConf
Mastodon – @posetteconf, https://mastodon.social/@posetteconf
Bluesky – @posetteconf.com, https://aka.ms/posette-on-bluesky

#PosetteConf #PostgreSQL #OpenSource
pgcov: Bringing Real Test Coverage to PostgreSQL Code | POSETTE: An Event for Postgres 2026Journey of developing a performance optimization feature in PGSQL | POSETTE 2026What was announced for developers on Windows at Build 2026?JSON in PostgreSQL - evil data type or just needs to be tamed? | POSETTE: An Event for Postgres 2026Your first AI agent is only a few lines of Python awayWatch the Microsoft Build opening keynote with Satya Nadella!Linux and PostgreSQL in the Multiverse of Connections | POSETTE: An Event for Postgres 2026Secure AI Agents in Azure: AI Gateway, Tools, and TrustAzure Data Studio Is Retiring—Here’s What’s Next for SQL Developers in VS CodeData Streaming for Modern Applications in SQL Server 2025, Azure SQL, and Fabric SQL | Data ExposedWhere Does My INSERT Go? A Logical Replication Story | POSETTE: An Event for Postgres 2026From Pilot to Productivity: A 90-Day Plan for Copilot Adoption
Microsoft Developer |

pgcov: Bringing Real Test Coverage to PostgreSQL Code | POSETTE: An Event for Postgres 2026

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER