/tools

Schema comparison and migration planner

Compare current → desired PostgreSQL definitions and work through a migration review checklist. Everything stays in your browser.

Export format and comparison scope

Use two plain-text schema-only exports, for example pg_dump --schema-only --no-owner --no-privileges database > schema.sql. Omit those last two options if ownership and grants are part of your comparison. Use consistent dump versions and filters. Custom-format archives and migration histories are not final-state schema snapshots.

Parsed tables, columns, constraints and indexes receive structural differences. The complete token-normalized changed-statement list also exposes views, routines, types, sequences, privileges, policies and other SQL. Comments and whitespace outside strings are ignored; SQL bodies and string contents remain significant. Text changes can represent equivalent SQL and require review.

The dependency order covers parsed foreign keys, partitions and inheritance. Review external objects, types, views, routines, triggers and application dependencies against the catalog. Renames are shown as additions/removals; they are not guessed. The output is a checklist, not executable migration SQL.

Schema-only exports · Dependency tracking · ALTER TABLE