pgplex/pgschema
Terraform-style, declarative Postgres schema migration. Agent friendly. observed · 2026-09-03
Health v2 · maintenance only
86/100
- Activity 100
- Release rhythm 100
- Longevity 32
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 9
- age_days: 451
- days_rel: 3
- days_push: 0
- n_releases_24m: 34
Adoption not part of the score
1023 stars · 60 forks observed · 2026-09-03
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
pgschema is a Go CLI tool that brings Terraform-style declarative schema migration to PostgreSQL: dump the current schema, edit the desired state, then plan and apply the generated DDL. It is Postgres-only with deep support for Postgres-specific objects like RLS policies, partitioned tables, and partial indexes, and requires no shadow database.
Use cases
- manage postgres schema migrations declaratively like terraform
- replace hand-written flyway or liquibase migration files
- diff edited schema against live database and generate migration DDL
- version-control database schema as plain SQL in git
- reconcile schemas across multi-tenant postgres databases
- apply schema changes safely in CI/CD pipelines
- dump a postgres schema in a clean readable SQL format
When to choose
- you use PostgreSQL 14+ and want state-based, declarative schema management
- you need Postgres-specific features like RLS, partitioning, and partial indexes tracked in migrations
- you want a free open-source tool with no feature gating and no shadow database infrastructure
- you prefer reviewing generated SQL plans before applying changes
When to avoid
- you need to manage database-level settings, roles, tablespaces, or extensions
- you use Windows natively (only Linux and macOS are supported)
- you use MySQL, SQL Server, or other non-Postgres databases
- you prefer traditional numbered migration-file workflows
Facets
cli-tool · maturity active
database infrastructure-as-code cli developer-tools ci-cd databases developer-tools cli go postgres schema-migration declarative terraform-style ddl schema-diff gitops multi-tenant database-migrations devops automation linux macos
5 sources
- readme: https://github.com/pgplex/pgschema · fetched 2026-09-03 · 0b845ddd058c
- homepage: https://www.pgschema.com · fetched 2026-08-29 · 26c5ef2f17f3
- site_page: https://www.pgschema.com/installation · fetched 2026-08-29 · 585021b135f4
- site_page: https://www.pgschema.com/quickstart · fetched 2026-08-29 · d5db44955dd7
- site_page: https://www.pgschema.com/faq · fetched 2026-08-29 · 7e9c28f4a5d6
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| pgplex/pgschema | main | 86 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem