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

Check out this diff. I just updated to the latest main version (reports itself as 1.4.2; also affects @latest reporting as 1.4.2), and the foreign keys are gone. This does...

Version info was added to release artifacts in 4fb89b0adf70db07f68b8847ce3afeb777b44007. The brew formula still uses a URL without the version info however, see [pgschema.rb](https://github.com/pgschema/homebrew-pgschema/blob/main/Formula/pgschema.rb#L4). This results in the following error when...

Just downloaded deb package of v1.4.3 and the suggested command in the quick start docs doesn't run. I use: ``` PGPASSWORD='mypass' pgschema dump --host hostname --db mydb --user postgres --schema...

I have this `db/schema.sql`: ``` sql create function nanoid(size int default 21) returns text language plpgsql leakproof parallel safe as $$ declare alphabet constant text := 'useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict'; bytes bytea :=...

The dump parser seems to be having issues with some of my columns, where it is dumping incomplete/invalid syntax. some examples: pg_dump: ``` CREATE TABLE snapshots ( snapshot_id integer NOT...

Hi. We've encountered what I believe is a bug, when renaming a table used in a materialized view. Here is a minimal example to reproduce, using pgschema 1.4.3 & postgres...

New major version of our favourite DBMS is released as stable, but unfortunately CLI throws an error when trying to use it. ``` Error: failed to detect PostgreSQL version: unsupported...

**Problem** Changing a table column's type to a custom enum with pgschema is not reliable if the column is currently a `text` or `varchar` type, especially when a default value...

### Problem When dumping a PostgreSQL schema with overloaded functions (same name, different signatures), `pgschema dump` only exports one overload, missing the others. ### Example ```sql -- Database has TWO...

Given the following database definition: ```sql create function public.extract_domain(website text) returns text LANGUAGE sql IMMUTABLE AS $$ SELECT CASE WHEN website = '' THEN NULL ELSE SUBSTRING(website FROM '(?:.*://)?(?:www\.)?([^/?#]*)') END...