PostgreSQL 17 runners are live
All rules

FRN114[high]Compatibility

Dependent objects dropped with CASCADE

Dropping a table or column also removed a view, function, policy or another table's key that used it.

Why it's risky in PostgreSQL

PostgreSQL refuses to drop something other objects depend on, unless the statement says CASCADE; then it drops them too, without listing them. A view that reports on the column, a function that reads it, or a foreign key from another table can disappear in the same migration.

Fronelta compares what depended on what before and after the migration, and names each object that went missing with its dependency. Indexes and constraints on the dropped column's own table are expected to go and aren't reported, and neither are objects the pull request drops explicitly.

What triggers it, and the safer way

unsafe.sql
ALTER TABLE orders DROP COLUMN status CASCADE; -- also drops view order_status_counts
safer.sql
DROP VIEW order_status_counts; -- dropped on purpose, in the same migration
ALTER TABLE orders DROP COLUMN status;

Suppress it when you're sure

Put this comment on the line before the statement. The reason is required and shows in the report.

suppression
-- fronelta:allow FRN114 <why this is safe here>

Applies to PostgreSQL 14, 15, 16, 17.