pgschema plan
, it captures a snapshot (fingerprint) of the current database schema state.
Later, when you run pgschema apply
, it verifies that the database hasn’t changed since the plan was generated. This prevents scenarios where:
pgschema
automatically generates migration plans that use online DDL strategies to minimize downtime. When possible, operations like index creation, constraint addition, and schema modifications are executed using PostgreSQL’s concurrent and non-blocking features. For detailed information about online DDL patterns and strategies, see the Online DDL documentation.