FRN812[high]Application queries
Watched query plan regression
A registered query got measurably slower, reads more data, or now spills to disk after the migrations.
Why it's risky in PostgreSQL
Fronelta plans (and, when you allow it, runs) each watched query on the same data before and after the migrations, with statistics refreshed both times. A regression needs the time to grow past both the relative and the absolute threshold, with no overlap between the baseline's and the candidate's runs, or buffers to grow past their threshold. A plan change alone isn't a regression.
Timings come from the run's data (synthetic rows unless the run used your copy); production can differ. The severity follows the query's criticality, and plan-only estimates are capped at medium.
What triggers it, and the safer way
-- watched query: SELECT id FROM orders WHERE status = $1
DROP INDEX orders_status_idx;-- Keep or replace the index the query relies on:
CREATE INDEX CONCURRENTLY orders_status_v2_idx ON orders (status, created_at);
DROP INDEX CONCURRENTLY orders_status_idx;Suppress it when you're sure
Put this comment on the line before the statement. The reason is required and shows in the report.
-- fronelta:allow FRN812 <why this is safe here>Applies to PostgreSQL 14, 15, 16, 17.