
Passing tests doesn’t mean a change is safe for production
Check every database change against real production workload. Agents see which queries it breaks, slows or locks before it ships.
See what every change touches
See which production queries a change affects, and why
Breaking changes
Dropping or retyping a column lists every statement that names it, including SELECT *.
Locking and downtime
A lock held long enough to matter lists the statements that would queue behind it: reads and writes, or writes only.
Index regressions
Dropping an index lists the statements whose plan actually uses it.
Write amplification
A new index lists the frequent writes that will lose cheap in-place updates, and the reads it serves.
Unexpected overhead
A new trigger or function lists the inserts and updates that already write the columns its body reads.
Table copies
Copying a table lists the statements that write it and the ones that sum or count it.
Production context.
Sample production
Connect Baseshift to your production primary. It samples the queries running there: what runs, how often, and how long it takes.
Test the change on a clone
The agent applies its migration on a Baseshift clone and runs its tests, as it already does.
Get scoped context back
Baseshift matches the queries the change ran against the production workload and returns the affected statements, why each one matched, and what it costs.
Revise, or ship with confidence
The agent revises the change until nothing in production is at risk, or you require approval or schedule the merge when the impact is high.
What your agent gets back
Not a risk score. Structured evidence from your real workload, the same numbers you’d pull from pg_stat_statements and pg_stats yourself, scoped to the change under review.
Affected statements
Normalized SQL, call count and total time for every production statement the change touches, each with the reason it matched.
Locking
The lock the change takes, what it blocks, and whether it’s held long. If it is, the statements that would queue behind it.
Write cost
How many of the table’s updates are in-place (HOT) today, and for each affected write: calls, WAL bytes and records, blocks dirtied.
Table and column stats
Row count, plus null fraction and distinct values for the columns the change names, so the agent can tell whether a filter will actually narrow anything.
Index fit
The new index’s keys and predicate, the indexes already on the table, and whether it matches the ORDER BY and LIMIT the query needs.
Query windows
Date ranges baked into reports and functions: the window, its default as-of date and the cutoff it produces.
Query plans
A summary of the plan for each affected statement, before the change and after it: scan type, index used, rows and buffers. When there’s no plan on one side, a note says why, so the agent can see when an index it relies on would disappear.