pgschema
pgschema copied to clipboard
Terraform-style, declarative Postgres schema migration. Agent friendly.
Just an idea: - pgplex could detect PG18 while calculating plan - instead `ALTER TABLE xy ADD COLUMN col text NOT NULL` there could be something like (for PG18 and...
I'm getting this error: ``` [chris@P14s-Arch dbworking]$ pgschema plan --host localhost --db apni --user nsl --schema public --file schema-apni.sql --output-json plan1.json --output-human plan1.sql hema pgschema_tmp_20260831_113936_a08e9368: ERROR: function f_unaccent(text) does not...
## Description `functionCallRegex` in `internal/diff/diff.go` uses pattern `[a-z_][a-z0-9_$]*` which does not match double-quoted identifiers like `"MyFunc"(col)`. This affects all callers of `referencesNewFunction()`: - Column defaults - Generated column expressions -...
For some reason a dump isn't dumping our sequence at all. It's dumping grant statements on them though... ``` -- -- Name: hibernate_sequence; Type: PRIVILEGE; Schema: privileges; Owner: - --...
I've got tables that when dumped by pg_dump have an id like this: ``` CREATE TABLE public.instance ( id bigint DEFAULT nextval('public.nsl_global_seq'::regclass) NOT NULL, ``` However pgschema dumps it like...
Hi Team, please support on below: Title: pgschema plan creates extra sequences for tables with custom-named sequence defaults Description: When running pgschema plan against a database where tables have integer...
I'm getting this error: ``` level=DEBUG msg="SQL execution failed" description="apply desired state SQL to temporary schema" error="ERROR: type \"tnu_index_v\" does not exist (SQLSTATE 42704)" Error: failed to apply desired state:...
## Environment - pgschema `1.12.4@9a09fe58 linux/amd64 2026-08-21` - PostgreSQL 17.10 - Latest release is `v1.12.5`; its changelog has no mention of multi-file ordering, so this is very likely still present...
In postgres roles and extensions are not database local, they are global, and while it's tempting to therefore ignore them, perhaps it would be better to include them somehow because...
I'm looking at your new data dump design, and I don't think it works for our use case, and here's why: Our database, which is a botanical database, we have...