pgpac
pgpac is a Go-first PostgreSQL schema packaging tool in the spirit of sqlpackage, built around a standalone CLI and an XML project file.
The workflow is straightforward:
- Define the desired schema state in a
.pgpacproject. - Build that project into a
.pgpkgartifact. - Compare the package against a live PostgreSQL database.
- Apply the generated plan with destructive-operation safeguards.
The tool currently supports:
- XML project parsing and validation
- offline desired-state parsing from SQL files
.pgpkgpackage creation with manifest and checksums- PostgreSQL 17+ introspection
- typed plan generation
- guarded apply execution
Use the docs in this site for installation, quickstart, command reference, and release notes.