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

Right now indexes hit the dump in apparently arbitrary order. A stable order like alphabetical would make it easier to see the changes, and to catch unexpected changes (e.g. loss...

Hi! pgschema uses two different ways to generate a DNS: 1. [cmd/util/connection.go](https://github.com/pgschema/pgschema/blob/e4a044cb68371b1c9a96577332f433048f99ec73/cmd/util/connection.go#L57) 2. [internal/postgres/embedded.go](https://github.com/pgschema/pgschema/blob/e4a044cb68371b1c9a96577332f433048f99ec73/internal/postgres/embedded.go#L49) Because of this user can't find working args set to use to connect to local database...

Hi! Great project! I am using [Cloud Native Postgres](https://cloudnative-pg.io) for my database lifecycle tooling and am looking around for a `k8s native` way of managing database schema lifecycle. `pgschema` looks...

Given the following database definition: ```sql create extension citext with schema public; create table some_table (id bigint primary key, fqdn citext not null); ``` `pgschema dump` produces: ```sql -- --...

Hi! Let's say we have existing database defined like this: ``` CREATE TABLE foo (id INT); CREATE FUNCTION bar() RETURNS TRIGGER LANGUAGE plpgsql AS $$ BEGIN RETURN NULL; END; $$;...

Hi, We are working with a database that has c.25 interdependent schemas (no circular dependencies). It would be good if was possible to run pgschema on all the schema at...

When running pgschema in debug mode, it would be good to have the list of SQL commands executed as I'm currently running into the following error which is really hard...

Great project, thanks for creating this! When using pgschema to manage schemas in PostgreSQL with TimescaleDB hypertables, schema migrations fail because pgschema tries to create indexes concurrently. TimescaleDB doesn't support...

This patch fixes several bugs in pgschema's dependency handling: ## Issues Fixed 1. **FK-heavy tables could be reordered alphabetically during cycles**: When Kahn's algorithm encountered a cycle, it would fall...

I'm coming from SSDT and SQL Server and seeking a state-based migration approach for maintaining our schema. Glad to see this exists! What approach does pgschema take for migrating _data_...