pg_regress: the PostgreSQL testing tool you already have installed Nov 23, 2026 You don't need to write your own SQL test runner in bash or PHP. Since 2006, PostgreSQL has shipped pg_regress, a test tool written in C. Here's how it works, where it comes from, and how to use it in your own project.