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

## Description `DEFERRABLE INITIALLY DEFERRED` on UNIQUE constraints is parsed (it's in the [syntax docs](https://www.pgschema.com/syntax/create_table)) but silently dropped at every stage: 1. **`dump`** — strips `DEFERRABLE INITIALLY DEFERRED` from output...

researching using pgschema to replace multi-schema migrations. wondering how you'd recommend adding DML-migrations, e.g. scripted data-migrations, using pgschema? is this a use-case you've thought about supporting? it might not exactly...

Is it possible to add an indexes section to .pgschemaignore? If we manually add any indexes on a table, pgschema will drop them and we want a way to preserve...

Hello, It would be great if we could also ignore triggers in the .pgschemaignore as I am using extensions that automatically create triggers on tables and I don't want them...

# What when using `TYPE` columns, especially ones that NEED quotes, like ``` CREATE TYPE "user" AS .... ``` 1. schema dumps are not generated with quoted column names 2....

# Problem Example We have a partitioned table "session" and another table "event" (for simplicity, it is not partitioned). Our app creates partitions automatically, so there is no need to...

Given the following schema with the built-in `name` type for one of its columns: ```sql CREATE TABLE pgschema_name_repro (n name); ``` `pgschema dump` incorrectly returns `char[]` as it's type: ```sql...

Given the following schema with a table-level `UNIQUE` constraint using the `NULLS NOT DISTINCT` modifier: ```sql CREATE TABLE pgschema_repro_nulls ( a integer, b integer, CONSTRAINT pgschema_repro_nulls_uniq UNIQUE NULLS NOT DISTINCT...

When a single apply both adds a new column and creates a view that references that column, the plan puts the ALTER TABLE ... ADD COLUMN and the CREATE OR...

**Severity:** Critical (apply fails when modifying any MV that has indexes to add or any MV referenced by another object pgschema wants to recreate). **Repro:** add an index to an...