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

## Summary With pgschema **1.13.0** and PostgreSQL **18.4**, a desired global default privilege statement (without `IN SCHEMA`) produces a successful empty plan. The requested default ACL is absent from the...

The following SQL schema appears to produce inconsistent results: ```sql create table some_table( class_result_id bigint generated by default as identity, class_run_id integer, primary key (class_result_id, class_run_id) ) partition by list...

### Description pgschema plan intermittently fails to start its embedded PostgreSQL and aborts with: Error: failed to start embedded PostgreSQL: failed to start embedded PostgreSQL: no version found matching 17.5.0...

## Summary When adding a column to an existing partitioned table, pgschema plan emits ALTER TABLE ... ADD COLUMN for both the parent and each existing partition. PostgreSQL propagates the...

**Version:** observed on v1.11.0; from reading `internal/diff/diff.go`, the ordering is the same in v1.14.1 and on `main`. **Current state** ```sql CREATE TYPE annotated_by_type AS ENUM ('human', 'model'); CREATE TABLE evidence...

### Summary When a policy's `USING` or `WITH CHECK` expression is a scalar subquery, for example `USING ((SELECT is_allowed()))`, pgschema writes it as `USING ( SELECT is_allowed() AS is_allowed)`, with...

## Summary When pgschema **creates** a composite type, it writes the attribute names without quotes. An attribute declared as `"organizationId"` is therefore created as `organizationid`. The next plan wants to...