Hooks-driven Migrations
Hooks are the normal answer when pgferry correctly tells you that something exists but should not be recreated automatically.
Typical use cases
Section titled “Typical use cases”- create extensions before data load
- run
ANALYZEafter bulk COPY - clean orphaned data before foreign keys
- recreate views, materialized views, routines, and validation SQL after the built-in pipeline