Skip to content

Hooks-driven Migrations

Hooks are the normal answer when pgferry correctly tells you that something exists but should not be recreated 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