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 CHECK constraints that reference no columns (e.g., `CHECK (FALSE) NO INHERIT`) are silently dropped during schema introspection. They never appear in the generated plan and are absent from...

Hello, I have two SQL statements causing issues in the `plan` stage. The first, I resolved ``` Error: failed to apply desired state: failed to apply schema SQL to temporary...

Hi! As we know, pgschema does not support pg extensions, so we need a way to ignore objects related to them. ## Problem Example Let's initialize database with the following...

```bash nathan@laptop projects % brew tap pgplex/pgschema nathan@laptop projects % brew install pgschema ==> Fetching downloads for: pgschema ✘ Formula pgschema (1.9.0) Verifying 17.8MB/ 17.8MB Error: Formula reports different checksum:...

# Table-level CHECK constraints omitted from schema dump When dumping a schema containing tables with `CHECK` constraints, the constraints are silently dropped from the output. ## Repro SQL code ```sql...

First of all, thank you for building `pgschema`! It's a great tool that brings a Terraform-style declarative workflow to PostgreSQL schema migrations. The dump/edit/plan/apply cycle is really well designed, and...

## Summary In v1.9.0, `pgschema plan` strips the target schema prefix from top-level constructs (declarations, GRANT/REVOKE, COMMENT targets) but **not** from qualified references inside function bodies. When a function in...

Hello, I have the following: `src/public/functions/accept_extracted_recipes.sql`: ``` CREATE OR REPLACE FUNCTION accept_extracted_recipes( recipe_ids uuid[] ) RETURNS SETOF recipe_user_save LANGUAGE plpgsql VOLATILE AS $$ BEGIN -- ... function content omitted END;...

Any future plans to support redshift?

My pgschema plan fails when a function takes a table's row type as a parameter (PostgreSQL composite type). The temp-schema validation step cannot resolve the composite type because the referenced...