Non-concurrent index creation locks the table for writes during the entire build.
Why This Matters
CREATE INDEX without CONCURRENTLY acquires an exclusive lock, blocking all INSERTs, UPDATEs, and DELETEs on the table until the index is built.
Tags
SquawkpostgresqlMigration Safety
Related Rules
Catch this automatically on every PR
BeforeMerge scans your pull requests against this rule and 3+ others. Get actionable feedback before code ships.