A Docker agent snapshots pg_stat_statements every minute and ties query regressions to your Vercel and Railway deploys. When something gets slow, you get the commit that did it.
| SELECT id FROM messages WHERE thread_id = $1 ORDER BY created_at DESC LIMIT 50 | 12ms | 280ms | ↑23× |
| SELECT count(*) FROM users WHERE active = true | 3ms | 3ms | — |
| INSERT INTO events (kind, payload) VALUES ($1, $2) | 2ms | 2ms | — |
No agents to deploy. No code changes. No language SDK. Just a Docker container next to your Postgres and a webhook from your CI.
$ docker run -d \
-e PGBLAME_DATABASE_URL=… \
-e PGBLAME_TOKEN=pgb_… \
ghcr.io/liberzon/\
pgblame-agent:latestVercel and Railway are two clicks. GitHub Actions or any other CI is a one-line curl.
Every query that got slower (or faster) since the deploy, with the commit and author. Email and Slack alerts on regressions.
Lantern is great if you're on Rails. pganalyze is great if you have a budget. We built pgblame for the gap between them — language-agnostic, deploy-aware, $19/mo.
| Tool | Price | Deploy correlation | History | Non-Rails |
|---|---|---|---|---|
| pgHero | free | — | current state only | ✓ |
| Lantern | $9/mo | ✓ | 30 days | — |
| pganalyze | $149+/mo | ✓ | long | ✓ |
| Supabase Query Performance | free w/ Supabase | — | current state only | ✓ |
| pgblame | $19/mo (free tier) | ✓ | 30 days | ✓ |
The free tier is a real product, not a trial. Pro adds projects, history, and alerts when you need them.
pg_stat_statements — never your application rows. The connection string and credentials never leave your machine. The agent is MIT-licensed at github.com/liberzon/pgblame-agent — you can read the literal SQL it runs.