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

Hello, Thanks for this amazing tool. Given the list of currently unsupported operations: https://www.pgschema.com/syntax/unsupported, how do we fill the gap that state based migration doesnt cover? Could pgschema add support...

## Summary `pgschema apply` silently drops every function-local `SET` clause except `search_path`. This changes runtime semantics when desired-state DDL contains settings such as `SET TimeZone = 'UTC'`. Confirmed with pgschema...

## Summary `pgschema plan` with the default embedded plan database can fail on a clean GitHub-hosted Ubuntu runner before reading the desired schema: ```text Error: failed to start embedded PostgreSQL:...

## Summary In **pgschema 1.12.1**, the generated `CREATE TABLE` statement truncates a column's enum **type name to 25 characters** whenever the type name is longer than 25 chars. The `CREATE...

Having a table and two functions, where the table depends on one function, and is dependent upon by the other function, appears to trip the ordering logic, since it attempts...

## Environment - pgschema version: 1.12.2 - Postgres source version: 15.8 - Mode: `plan` using the default embedded plan database (no `--plan-host`) - Schema size: large (100+ tables), many cross-table...

First off, thanks for the quick fix on #532 via PR #533 — much appreciated. This is a follow-up to #532 / PR #533. That PR fixed constraint ordering in...

Let's make a domain like so: ``` plan_test2=# create table x(); CREATE TABLE plan_test2=# create domain y as x; CREATE DOMAIN ``` Let's try dumping it: ``` $ ./pgschema dump...

Title: DROP CONSTRAINT generated after DROP TABLE/COLUMN — causes foreign key dependency failure Description: When generating a migration plan that involves dropping both a table/column and its associated foreign key...

## Summary When a column's type changes between two **built-in** types that PostgreSQL cannot implicitly cast (e.g. `text` → `integer`), `pgschema plan` emits a bare `ALTER TABLE ... ALTER COLUMN...