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

## Initial schema ```sql -- schema.sql CREATE TABLE items ( id integer PRIMARY KEY, label text NOT NULL ); CREATE FUNCTION stamp_item() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN RETURN...

This is a feature request, but because pgschema is actively developed, it would be nice to have a version flag so that agentic tools can identify if it should expect...

I use `drizzle-kit export` as advised on https://www.pgschema.com/workflow/orm#work-with-orm Drizzle kit properly ordres sql statements so I would prefere not to reorder create statements in pgschema. I would suggest new optional...

### Problem Migrating from Supabase Migrations. When using Supabase Auth and trying to create a FK on Auth schema, if Auth schema isn't dumped, pgschema errors out with `schema \"auth\"...

When changing a PostgreSQL RLS policy from an explicit WITH CHECK expression to an implicit one, pgSchema generates invalid SQL `with check ;`. pgSchema version 1.12.3 ### Existing database schema...

## Environment - pgschema v1.12.3 - PostgreSQL 17.x (Supabase PostgreSQL image) - `plan` uses an external PostgreSQL plan database via `--plan-host` - Target schema is a Supabase application database with...

## Environment - pgschema v1.12.3 - PostgreSQL 17.x (Supabase PostgreSQL image) - Supabase-style roles, schemas, and default privilege definitions - `plan` uses an external PostgreSQL plan database via `--plan-host` ##...

Hello, I wonder if you have planned some retry mechanism for gracefully handling lock issues as described in this article: https://postgres.ai/blog/20210923-zero-downtime-postgres-schema-migrations-lock-timeout-and-retries After all, migrating busy tables requires this type of...

`pgschema` does not carry a btree index's null-ordering clause. It is lost in two places, and the second is the serious one: 1. **`dump`** omits `NULLS FIRST` / `NULLS LAST`...

I could not find a reference to that in the examples and in the documentation: how do you approach migrations that involves existing data? That is clearly a broad problem,...