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

Is it possible to force dump to qualify all table references? This would make the output easier to integrate in workflows that expect a specific schema to be used. It...

## Summary When a schema uses PostgreSQL default privileges to auto-grant access on new tables, combined with explicit `REVOKE` statements for specific tables, pgschema requires two apply cycles to converge....

Absolutely loving pgschema, thank you! I'm using [typeid](https://github.com/jetify-com/typeid-sql) to provide type safe ID's all the way down to the database. Unfortunately pgschema doesn't seem to correctly order statements when a...

unfortunately it seems like `pg_depend` doesn't return function-to-function dependencies ```sql -- Base function that parses input (named 'z_helper' so it comes after alphabetically) CREATE OR REPLACE FUNCTION z_helper_parse(input text) RETURNS...

When dumping a schema that contains a RLS policy where the USING clause is a simple function call, pgschema outputs syntactically invalid SQL that PostgreSQL rejects. PostgreSQL's CREATE POLICY syntax...

I have a use case where it's useful get a pure DDL schema dump with no commentary. Currently, I use a wrapper script that invokes pgschema and then strips out...

When doing a schema dump on partial indexes with multiple `WHERE` clauses with an enum `IN`, incorrect parentheses are generated. Repro SQL code: ``` CREATE SCHEMA test; CREATE TYPE test.enum_type...

### Description When dumping a composite foreign key constraint where the FK column order differs from the table's column definition order (attnum), pgschema outputs the **referenced** columns in the wrong...

pgschema properly drops and recreates a materialized view when changes are made to its schema. However, it does not search for objects dependent on that materialized view, so this fails...

Seems like there's an issue when using pgschema with varchars. Given ```sql -- example.sql -- This works CREATE TABLE if not exists example_working( id bigint generated by default as identity...