macOS
brew install pg-schema-difflocal Homebrew formula metadata
brew / rank 5385
Diff Postgres schemas and generating SQL migrations. Version 1.0.9 via Homebrew; verified 2026-09-13. Also installable with nix: nix profile install nixpkgs#pg-schema-diff.
install
brew install pg-schema-difflocal Homebrew formula metadata
nix profile install nixpkgs#pg-schema-diffnixpkgs package indexes · pkgs/by-name/pg/pg-schema-diff/package.nix · source: api.github.com
overview
Diff Postgres schemas and generating SQL migrations
history
pg-schema-diff is a Stripe-maintained Go library and CLI for comparing PostgreSQL schemas and producing migration plans designed to minimize downtime and locking.
Stripe developed pg-schema-diff to compare PostgreSQL schemas and generate the SQL needed to transform one into another. The project grew around online-migration techniques, temporary-database validation, hazard reporting, partition support, and both CLI and reusable Go-library interfaces.
Stripe publishes the project as both a Go library and a command-line program. Official installation instructions support `go install`, Go modules, and Homebrew, enabling use in application tooling and database deployment workflows.
Users describe a desired database schema with one or more DDL files, compare it with a live database, inspect the generated plan and hazards, and then apply approved changes. The CLI accepts DSNs and recommends PGPASSWORD for supplying a password without embedding it in the connection string.
pg-schema-diff brings declarative, plan-oriented migration behavior to PostgreSQL while exposing operational hazards before execution. Database tooling enthusiasts care about its use of native concurrent and staged PostgreSQL operations to reduce locks and downtime rather than relying only on handwritten sequential migrations.
security posture
broad file, network, media, or database tool signal.
blue risk · medium confidence · tool
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
executables
| Command | Kind | Exposure | Note |
|---|---|---|---|
pg-schema-diff | cli | global executable |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
https://github.com/stripe/pg-schema-diff
install metadata
| Package key | brew:pg-schema-diff |
|---|---|
| Version | 1.0.9 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/pg-schema-diff |
| Homepage | https://github.com/stripe/pg-schema-diff |
| Repository | https://github.com/stripe/pg-schema-diff |
| License | MIT |
| Source archive | https://github.com/stripe/pg-schema-diff/archive/refs/tags/v1.0.9.tar.gz |
| Last updated | 2026-09-13T11:21:35Z |
| Pulse | updated |
| Build dependencies | go |
| Bottle | available (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | pg-schema-diff |
| Version Scheme | 0 |
| Revision | 0 |
| Head Version | HEAD |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
pg-schema-diff
nix profile install nixpkgs#pg-schema-diffsource trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.