The Query Regression alert notifies you when its configured condition is met on PostgreSQL instances so you can investigate and respond.
Mini DBA describes this alert as: PostgreSQL query sampling has detected statements whose recent execution time, total work, reads, or call rate has materially worsened compared with the recent baseline. Mini DBA evaluates this alert once a minute so changes are detected quickly.
This alert helps reveal query and workload pressure. It points you toward expensive statements, plan changes, inefficient access patterns, or bursts of work that need investigation before they affect service levels.
Enable it on any monitored PostgreSQL instance where this condition would require an administrator to investigate or communicate with the application team. Tune noisy development systems after you have a short baseline.
Threshold meaning: Regressed queries. Major threshold: 5 queries. Minor threshold: 0 queries. Comparison direction: over. For an over-threshold alert, decreasing a threshold makes that severity fire sooner; increasing it tolerates more load or pressure. Set the minor threshold as an early-warning level and the major threshold at the highest acceptable value for the service.
Use the query, wait, and performance views to find the statement or subsystem behind the pressure. Compare against the recent baseline, update statistics, tune indexes, adjust application batching, and move maintenance work away from peak periods where possible.
If this alert is noisy, check whether the workload naturally has short bursts. Raise the duration or threshold for expected batch windows, but keep a lower route for production systems where user-facing latency matters. Avoid simply disabling the alert until you know whether the noise is caused by threshold choice or by a real capacity trend.