Skip to content

PostgreSQL Compatibility

pgmold is tested against PostgreSQL 13 through 17 on every pull request.

PostgreSQLStatusNotes
17TestedLatest stable
16Tested
15Tested
14Tested
13TestedMinimum supported version
12 and belowUntestedMay work, but not guaranteed

The full integration test suite runs against each version above. This covers:

  • Schema introspection via pg_catalog
  • Table, column, and constraint diffing
  • Index creation and modification
  • Enum and domain types
  • Functions and triggers
  • Row-level security policies
  • Views and materialized views
  • Sequences and identity columns
  • Declarative partitioning (PARTITION BY / PARTITION OF)
  • Cross-schema foreign keys
  • Grants and default privileges
  • Drift detection via fingerprinting

Set the PGMOLD_TEST_PG_VERSION environment variable:

Terminal window
PGMOLD_TEST_PG_VERSION=14-alpine cargo test --all-features --test '*'

This requires Docker to be running (tests use testcontainers).