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

``` ~/dev/repos/clientdatamart 🌳BVGS-1741$ pgschema --debug dump --host host.co --db dib --user marcintustin --schema public --file schemas/public/main.sql --multi-file time=2026-02-10T14:25:17.379-05:00 level=DEBUG msg="Attempting database connection" host=host.co port=5432 database=dib user=marcintustin sslmode=prefer application_name=pgschema time=2026-02-10T14:25:17.896-05:00 level=DEBUG...

Need more info

When generating a plan into a .sql (or .json) file pgschema will correctly quote reserved keywords when executing ALTER TABLE statements but not when generating indexes. I know it is...

Hi, I found an issue with `pgschema dump`. It misses `CREATE TRIGGER` for `INSTEAD OF` triggers on views. ### Reproduction Schema example to reproduce the issue: ```sql CREATE SCHEMA test;...

## Summary When using pgvector types with dimensions (e.g., `halfvec(384)` / `vector(384)`), pgschema appears to drop the typmod during plan/apply. The generated plan SQL creates the column as `halfvec` (no...

I'm using an external database that has several schemas and each script deletes one or more tables in the previous script. Schema 1 - Public ```plpgsql -- -- pgschema database...

Hi, thanks for pgschema. When I run `pgschema dump --multi-file` multiple times on the same unchanged database, the order of `\i ...` lines in main.sql changes between runs. This creates...

I've found my admittedly complex schema trips up `pgschema apply` in a couple cases. Not sure if this is beyond the scope -- feel free to suggest a different approach...

When using ALTER DEFAULT PRIVILEGES (without specifying a FOR ROLE) and running with the embedded postgres, something goes wrong and pgschema wants to revoke default privileges on the postgres role...

I get this quite often. We have 6 schema's and normally 1 or 2 of them get this and I have to re-run the github action a few times to...

Need more info

# Bug: `DiffSource` interface field on `Diff` breaks JSON deserialization in debug mode > Note: Excuse the AI written bug report. Was having some issues apply a plan in debug...