How do I add an index or column to a big PostgreSQL table without downtime?
A one-line migration can freeze every query on a table. lock_timeout, CREATE INDEX CONCURRENTLY, NOT VALID constraints and expand-and-contract keep schema changes online.
#indexing#locking#migrations

