Destructive Operations

ALTER TABLE ... DROP CONSTRAINT

Lock mode ACCESS EXCLUSIVE
Risk MEDIUM
Blocks reads, writes, other DDL
pgfence rule drop-constraint
ALTER TABLE orders DROP CONSTRAINT orders_customer_id_fkey;

What this does

A brief catalog change, but it removes an integrity guarantee (a FOREIGN KEY, CHECK, or UNIQUE) that application code may be relying on implicitly.

Read more

More in Destructive Operations