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

Starting with: ```sql -- example initial create schema example; CREATE TABLE example.ex ("ID" int primary key); ``` Then later updating it to: ```sql -- example after create schema example; --...

**Version**: pgschema v1.6.1 ### Minimal reproduction ```sql -- minimal.sql CREATE TABLE test ( id UUID PRIMARY KEY DEFAULT gen_random_uuid(), status TEXT CHECK (status IS NULL OR status IN ('A', 'B',...

"GRANT EXECUTE ON FUNCTION upsert_grading_annotations(_plan_id uuid, _dzi_ids uuid[], _off TO service_role;" I'm trying to get the schema from supabase so maybe this is a timeout issue. Most of it is...

get_dzi_not_linked_to_plan should be after the table. Don't ask me why this isn't a view, it probably should be. ```SQL -- -- Name: get_dzi_not_linked_to_plan(uuid); Type: FUNCTION; Schema: -; Owner: - --...

### Step 1 Create a table ```sql CREATE TABLE people ( id bigint PRIMARY KEY GENERATED ALWAYS AS IDENTITY, created_at timestamptz ); ``` ### Step 2 Add a default ```sql...

### Step 1 Create table below (old.sql) ```sql CREATE TABLE public.table1 ( c1 int NOT NULL, c2 serial, c3 int GENERATED ALWAYS AS IDENTITY ); ``` ### Step 2 Modify...

I’m trying to use pgschema with CockroachDB, which supports the PostgreSQL wire protocol and is commonly used as a PostgreSQL-compatible distributed database. CockroachDB version output: ```sql SELECT version(); -- CockroachDB...

When doing a schema dump on tables with `EXCLUDE USING gist` constraints, the constraint is incorrectly converted to a regular `CREATE INDEX` statement, losing the exclusion semantics. ## Repro SQL...

Consider this dump (I added Create Extension so it would work witout claiming they didn't exist): ``` -- -- pgschema database dump -- -- Dumped from database version PostgreSQL 17.7...

The failue is: ``` Error: failed to apply desired state: failed to apply schema SQL to temporary schema pgschema_tmp_20260206_185024_01130b54: ERROR: relation "public.geotab_database" does not exist (SQLSTATE 42P01) ``` This is...