pgschema
picks migration strategies that minimize downtime and blocking when making schema changes to production PostgreSQL databases.
pgschema
automatically uses CREATE INDEX CONCURRENTLY
to avoid blocking table writes:
pgschema:wait
directive blocks the schema migration execution, polls the database to monitor progress, displays the progress to the user, and automatically continues when the operation completes. It tracks:
pg_stat_progress_create_index
pgschema
uses a safe “create new, drop old” pattern:
NOT VALID
pattern:
NOT VALID
pattern:
NOT NULL
constraints uses a three-step process: