Skip to content

Hooks-driven Migrations

Hooks are the natural answer when pgferry rightly tells you something exists but shouldn’t be recreated for you automatically.

  • create extensions before data load
  • run ANALYZE after bulk COPY
  • clean orphaned data before foreign keys
  • recreate views, materialized views, routines, and validation SQL after the built-in pipeline