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

I have an odd bug here that is somewhat hard to explain, but given the following database definition: ```sql create table some_table( id serial primary key, value integer not null...

Given the following database definition: ```sql create table some_table(id integer primary key); create table some_other_table(id integer primary key); create view some_view as ( select id from ( select id from...

Here's another oddball issue in planning. Given the following database: ```sql create table some_table( id serial primary key, start_date date, report_date date, type varchar(20) ); CREATE VIEW some_view AS WITH...

## Example / Duplicate Issue ```toml # .pgschemaignore [procedures] patterns = ["foobar"] ``` ```sql -- run before pgschema apply CREATE OR REPLACE PROCEDURE foobar(target_role text) LANGUAGE plpgsql AS $$ BEGIN...

Given the following database definition: ```sql create extension hstore; create table some_table( id serial primary key, some_value hstore ); ``` `pgschema dump` outputs: ```sql -- -- pgschema database dump --...

Given the following database definition: ```sql create schema some_schema; create table public.some_table(id serial primary key); create table some_schema.some_other_table( id serial primary key, some_table_id integer not null references public.some_table(id) ); ```...

Given the following database definition: ```sql create schema some_schema; create type some_schema.some_type as enum ('value1', 'value2', 'value3'); create type some_schema.some_other_type as ( name text, type some_schema.some_type ); create function some_schema.some_function(type...

Original version dumped with pgschema 1.1.1, new version with master version: ``` ~/dev/repos/clientdatamart 🌳BVGS-1536$ git diff schemas/db_tracking/functions/apply_all_object_permissions_with_dependencies.sql | head -30 diff --git i/schemas/db_tracking/functions/apply_all_object_permissions_with_dependencies.sql w/schemas/db_tracking/functions/apply_all_object_permissions_with_dependencies.sql index a6f01fb..f385e4d 100644 --- i/schemas/db_tracking/functions/apply_all_object_permissions_with_dependencies.sql +++...

Hey. I just tried to install for use with the `go tool` command and it failed: ```sh $ go get -tool github.com/pgschema/pgschema@latest go: downloading github.com/pgschema/pgschema v1.3.0 go: downloading github.com/pgschema/pgschema/ir v0.0.0...

E.g. Should get ``` CREATE INDEX IF NOT EXISTS idx_trgm_cage_mcsp ON mv_client_supplier_parts USING gist (cage gist_trgm_ops); ``` But instead getting ``` CREATE INDEX IF NOT EXISTS idx_trgm_cage_mcsp ON mv_client_supplier_parts USING...