pgschema
pgschema copied to clipboard
Terraform-style, declarative Postgres schema migration. Agent friendly.
In my `indexer` schema, I have a function trigger. If I reference a SELECT table in a function that has a schema (`FROM indexer.tokens`), it will remove that schema and...
Thanks for fixing functions-before-tables ordering in v1.7.2 — that works great now. However, view-to-view dependencies within a schema are still ordered alphabetically. This causes failures when a view depends on...
When a table gains a new column and a dependent view uses `SELECT t.*`, pgschema emits `CREATE OR REPLACE VIEW` which fails because PostgreSQL cannot rename existing view columns. ##...
Hello, I have a problem with column names in camelcase. As recommended in issue https://github.com/pgplex/pgschema/issues/14, I have created a JSON-plan. The plan escapes correctly in nearby every case, except one...
## Summary `pgschema plan` reports a view modification for the same view on every run, even after applying the generated DDL. The reported change is only a qualification difference: -...
The docs [mention](https://www.pgschema.com/cli/plan#ci/cd-integration) (and it's indeed useful) the ability to detect destructive changes in the JSON plan output, but it looks like no such data is present in the plan...
Bug Description When a database has tables with identical names in different schemas (e.g., core.account and cdc_projection.account), the dump command may assign the wrong schema's COMMENT ON TABLE to a...
Dump produces syntactically incorrect SQL in plpgsql function declarations when there are ambiguous table names in database (sure, the best practise is to avoid such identifiers, but tables named `user`...
Even though [smart schema qualification](https://www.pgschema.com/cli/dump#schema-qualification) is a practical feature for multi-tenant applications, it would be useful to have some CLI flag allowing us to extract dump including schema in qualifiers....
It would be good if there was a way to turn off including `FOR ROLE` inside of the generated schema. This has caused the schema to break when working with...