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

**Severity:** High (data-impact: would drop the aggregate's transition function on apply, breaking dependent queries). **Repro:** ```sql -- In the source DB: CREATE OR REPLACE FUNCTION myschema._helper(input geometry[]) RETURNS geometry LANGUAGE...

**Type:** bug **Severity:** apply-blocking **Affects:** v1.9.0, current `main` ### Summary pgschema's online-DDL rewrite emits `CREATE INDEX CONCURRENTLY` for any new index on an existing table, including indexes whose target is...

As I developed my projects github action workflow for using pgschema plan/apply I noticed with the go install it would not use the `.pgschemaignore` when running `plan` or `apply`. With...

**pgschema version:** 1.9.0 ## Description `pgschema dump` silently drops the length modifier from `varchar(n)[]` columns. The column is emitted as `varchar[]`. ## Steps to reproduce ```bash # 0. Start PostgreSQL...

**pgschema version:** 1.9.0 ## Description A schema with quoted mixed-case column names and circular foreign key dependencies cannot be round-tripped through `pgschema dump` + `pgschema plan`. The dump produces a...

**pgschema version:** 1.9.0 ## Description A schema with quoted mixed-case custom type names cannot be round-tripped through `pgschema dump` + `pgschema plan`. The dump produces a desired state file that...

Given the following schema with an `UNLOGGED` table ([docs](https://www.postgresql.org/docs/current/sql-createtable.html#SQL-CREATETABLE-UNLOGGED)): ```sql CREATE UNLOGGED TABLE pgschema_unlogged_repro ( id integer PRIMARY KEY, payload text NOT NULL ); ``` Running `pgschema dump` does not...

The GitHub repository has released the latest version **v1.9.0**, but the official Docker Hub image [pgschema/pgschema](https://hub.docker.com/r/pgschema/pgschema) is still stuck at **v1.6.2**. This causes: 1. Cannot pull the latest official docker...

When using pgschema `1.9.0` with a Supabase/PostgreSQL database, schema-qualified functions inside RLS policy expressions are dumped/planned as unqualified function calls. For example, Supabase RLS policies commonly use: ```sql auth.uid() auth.role()...

I have a scenario where the system is separated into large modules, each module has a separate schema, but there are foreign keys between these schemas, making it impossible to...