FRN811[critical]Application queries
Watched query no longer valid
A registered application query prepared before the migrations and fails after them.
Why it's risky in PostgreSQL
Fronelta prepares each watched query against the schema before and after your migrations, in the same sandbox. This one stopped preparing: PostgreSQL rejects it (for example an undefined column, a type mismatch or a function it can't resolve). The application code that sends it will fail the same way once the migration ships.
The finding names the changed object that explains it when the schema diff shows one.
What triggers it, and the safer way
-- watched query: SELECT id FROM orders WHERE qty > $1
ALTER TABLE orders DROP COLUMN qty;-- Release 1: stop reading orders.qty in the application
-- Release 2:
ALTER TABLE orders DROP COLUMN qty;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 FRN811 <why this is safe here>Applies to PostgreSQL 14, 15, 16, 17.