# Install pg-schema-diff with Homebrew, Nix

Diff Postgres schemas and generating SQL migrations. Version 1.0.7 via Homebrew; verified 2026-07-03.

## Install

```sh
sudo av install brew:pg-schema-diff
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install pg-schema-diff
```

  Evidence: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#pg-schema-diff
```

  Evidence: nixpkgs package indexes: pkgs/by-name/pg/pg-schema-diff/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

## Package facts

- **Package key:** brew:pg-schema-diff
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/pg-schema-diff>
- **Version:** 1.0.7
- **Source summary:** Diff Postgres schemas and generating SQL migrations
- **Homepage:** <https://github.com/stripe/pg-schema-diff>
- **Repository:** <https://github.com/stripe/pg-schema-diff>
- **Upstream docs:** <https://github.com/stripe/pg-schema-diff/blob/main/README.md>
- **License:** MIT
- **Source archive:** <https://github.com/stripe/pg-schema-diff/archive/refs/tags/v1.0.7.tar.gz>
- **Last updated:** 2026-07-03T15:28:39Z
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- pg-schema-diff (cli)
- pg-schema-diff (alias)

## Build dependencies

- go

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 1.0.7
- Package-manager updated: 2026-07-03
- Local data: ok
- Upstream repository: https://github.com/stripe/pg-schema-diff
- Upstream latest detected: v1.0.7 (current)

## Security Notes

broad file, network, media, or database tool signal.

- **Geiger risk:** blue / medium
- broad file, network, media, or database tool signal

## Source Database Details

- **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:** head, stable

## Other Package-Manager Records

- Nix - pg-schema-diff: normalized package name match | nixpkgs package indexes: pkgs/by-name/pg/pg-schema-diff/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1


## Related links

- [Source-control packages](https://www.automicvault.com/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Secret-risk packages](https://www.automicvault.com/pkg/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [go](https://www.automicvault.com/pkg/brew/go/) - Build dependency declared by Homebrew.
- [pg_partman](https://www.automicvault.com/pkg/brew/pg-partman/) - Shares av.db curated category or tags: cli, database, developer-tools, postgresql.
- [pg_top](https://www.automicvault.com/pkg/brew/pg-top/) - Shares av.db curated category or tags: cli, database, developer-tools, postgresql.
- [pgbackrest](https://www.automicvault.com/pkg/brew/pgbackrest/) - Shares av.db curated category or tags: cli, database, developer-tools, postgresql.
- [pgbadger](https://www.automicvault.com/pkg/brew/pgbadger/) - Shares av.db curated category or tags: cli, database, developer-tools, postgresql.
- [pgbouncer](https://www.automicvault.com/pkg/brew/pgbouncer/) - Shares av.db curated category or tags: cli, database, developer-tools, postgresql.
- [pgcli](https://www.automicvault.com/pkg/brew/pgcli/) - Shares av.db curated category or tags: cli, database, developer-tools, postgresql.
- [pgcopydb](https://www.automicvault.com/pkg/brew/pgcopydb/) - Shares av.db curated category or tags: cli, database, developer-tools, postgresql.
- [dbmate](https://www.automicvault.com/pkg/brew/dbmate/) - Shares av.db curated category or tags: cli, database, developer-tools, postgresql, sql.

## Combined YAML source

View the package source record on GitHub. [combined/pg-schema-diff.yml](https://github.com/automic-vault/db/blob/main/combined/pg-schema-diff.yml)


## Sources

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
