ComingUp
Petri – Drop-in Postgres image that forks a DB per test

Petri – Drop-in Postgres image that forks a DB per test

May 14, 2026 Developer Tools
database golang postgresql proxy testing

Gallery

Petri – Drop-in Postgres image that forks a DB per test

About

Rolling it out at work to parallelize 4,257 tests across 5 services. It fixes our tests running in band and DB mocking in API tests.It's a drop-in Postgres image, with a Golang proxy. :5432 is passthrough, :5433 forks the DB per conn (CREATE DATABASE … TEMPLATE …, dropped on disconnect).If you use it, let me know what you like or don't like, so I can make it better. Cheers!

Comments (0)

No comments yet. Be the first to comment!