A Fail-Fast PostgreSQL Migration Preflight for CI | Percona Community

A database migration can be syntactically correct and still be a poor release candidate. A regular index build can block writes, an ALTER TABLE may wait behind a conflicting lock or hold a strong lock longer than expected, and a large data modification can turn a routine deployment into an incident.


This is a companion discussion topic for the original entry at https://percona.community/blog/2026/09/08/postgresql-migration-preflight-ci/

Spot on, daniil.bazhenov! :rocket: Database migrations looking fine on paper while causing locks or heavy write-blocking in production is a classic deployment nightmare. Having a solid preflight check in CI/CD for schema changes and heavy locks is an absolute lifesaver. Great read