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

## Problem When a schema uses features provided by PostgreSQL extensions (e.g., `btree_gist` for EXCLUDE constraints with non-default GiST operator classes), pgschema's `dump` command doesn't include `CREATE EXTENSION` statements in...

I'm working on legacy database with poor structure and want to introduce some quality of life improvements like replacing UNIQUE constraints with PRIMARY KEYs. However pgschema fails to achieve this...

Destructive sibling of #414. When a column is dropped and a view that references it is recreated in the same plan, pgschema emits the `ALTER TABLE DROP COLUMN` before the...

## Summary `pgschema plan` reports unresolvable and insignificant diffs on CHECK constraints that reference functions or custom types defined in the same schema being managed. The plan perpetually wants to...

## Summary `pgschema plan` and `pgschema apply` unconditionally drop `UNIQUE` constraints that cover the same column(s) as the table's `PRIMARY KEY`, even when the constraint is explicitly declared in the...

Is it possible to add a constraints section to .pgschemaignore to ignore any manually added constraints by name?

## Summary In v1.10.0, `pgschema apply` succeeds for a schema with RLS policies and CHECK constraints that reference same-schema objects, but a repeat `pgschema plan` immediately reports changes again. This...

Hi there, currently I'm trying to evaluate if we can/should use pgschema in our in house software and stumbled over the following problem. We have our credentials in an `.env`...

## Summary `ENABLE ROW LEVEL SECURITY` on a **partitioned** table (relkind `p`) is neither dumped nor diffed. Policies on the partitioned table ARE dumped correctly, which makes the gap easy...

## Summary Two related problems when a partitioned parent has a `FOR EACH ROW` trigger (which PostgreSQL automatically clones onto every partition child, with `pg_trigger.tgparentid` set): 1. `dump` emits the...