pgschema icon indicating copy to clipboard operation
pgschema copied to clipboard

Terraform-style, declarative Postgres schema migration. Agent friendly.

Results pgschema issues
Sort by recently updated
recently updated
newest added

**Version:** v1.13.1 (darwin/arm64), PostgreSQL 18.6 (`postgres:18`), default embedded plan database ### Summary The `pgschema:wait` query emitted after `CREATE INDEX CONCURRENTLY` matches the index by name only, `WHERE c.relname = ''`,...

## Summary In a CHECK constraint that uses `LIKE`, pgschema drops everything after the pattern literal. This affects `dump` and `apply`, and `plan` can't detect it. ## Reproduce (v1.13.1, PostgreSQL...

## What There's some things that pgschema doesnt currently do, for my use cases these are: - Extensions - User Management - Misc side effect calls (EG: something like CALLing...

Parent: #627 Schema ownership has a PostgreSQL-specific authority rule that differs from other ownership transfers. PostgreSQL checks database `CREATE` on the effective current role for `ALTER SCHEMA ... OWNER`, while...

Parent: #627 PostgreSQL identifiers may legally contain `/`, but global-state tuple keys are constructed by joining fields with `/` and later parsed with a first-delimiter split. Reproduced with quoted role...

Parent: #627 A role declared `state = "absent"` remains available to other declarations when it currently exists. Reproduced with ownership; the same contradiction applies to memberships and default privileges: 1....

Parent: #627 A default-privilege declaration can contain duplicate names such as `["SELECT", "SELECT"]`. Reproduced in manifest validation: duplicates survive normalization, while inspected privileges are stored as a map. The desired...

Parent: #627 Role configuration values are external manifest input and must be quoted independently of the target's `standard_conforming_strings` setting. A focused reproduction with a value containing a backslash followed by...

Parent: #627 PostgreSQL 16 and newer can retain separate membership rows/options by grantor. Collapsing those rows with `bool_or` loses the grantor that supplies an option. Reproduced on PostgreSQL 16, 17,...

Parent: #627 A global desired-state plan can alter or revoke membership from the applying role before later ownership/default-privilege work that requires that authority. The failure is version-independent and reproduced at...