Ross ROSS = Recommend OSS · open-source software intelligence for agents

pgplex/pgschema

Terraform-style, declarative Postgres schema migration. Agent friendly. observed · 2026-09-03

github.com/pgplex/pgschema · homepage · Go · Apache-2.0 (permissive) 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

Full methodology

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

Member repositories

RepositoryRoleHealth v2
pgplex/pgschemamain86

For agents

markdown · JSON · MCP: product_card(name="pgplex/pgschema")

Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem