The Danger of PostgreSQL Table Locks

Running `ALTER TABLE ADD COLUMN ... DEFAULT 'foo'` or dropping columns on active tables can acquire an `AccessExclusiveLock`, blocking all read and write queries until the operation finishes. Under concurrent traffic, this causes immediate 504 gateway timeouts.

We follow the Expand-and-Contract migration pattern across multiple deployment stages to ensure zero lock contention.