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

As was mentioned here https://github.com/pgplex/pgschema/issues/148#issuecomment-4808298165 I cannot drop trigger function. This time I tested with pgschema 1.12.0 and https://github.com/janbjorge/pgqueuer. `pgq install --dry-run` generates following: ```sql CREATE TYPE pgqueuer_status AS ENUM...

### Summary When an incremental migration both (a) adds a `UNIQUE` constraint or unique index to a **pre-existing** table and (b) creates a **new** table whose foreign key references those...

## What happens When an index that has an `INCLUDE` clause is added to a table that already exists, or an existing index is rebuilt, the generated plan uses `CREATE...

## Summary When an index's definition changes **and** one of the columns it depends on is dropped in the same plan, `apply` fails with `SQLSTATE 42704` (`index "..." does not...

Hello! I'm evaluating this as an alternative to Atlas since a lot of their functionality is paywalled. Right now the workflow is that I make a change to a `schema.sql`,...

## Summary On current `main`, when the desired state adds a commented trigger to an existing table, the first `pgschema apply` creates the trigger but omits its `COMMENT ON TRIGGER`...

## Bug When a column's type is owned by a PostgreSQL extension (e.g. pgvector's `vector`), `pgschema plan`/`diff` can report a spurious `ALTER COLUMN TYPE` (or, for brand-new tables, fail outright...

## Summary First, thank you for maintaining pgschema. The fix from #316 appears not to cover the plan-time temporary-schema path completely. With pgschema v1.12.0, a view that calls an extension...

I added a column to a table and two extra columns using enums are being modified but were not modified in the schema file. user_status_log_source_enum -> user_status_log_source_en document_document_type_enum -> ocument_document_type_en...

**Type:** feature **Affects:** v1.12.1 ### Summary `plan --output-json` does not say which steps cannot run inside a transaction. The planner computes it — `RewriteStep.CanRunInTransaction` in `internal/plan/rewrite.go:14`, already JSON-tagged — but...