pgschema
pgschema copied to clipboard
Terraform-style, declarative Postgres schema migration. Agent friendly.
Parent: #627 Ownership preflight and emitted SQL disagree for a non-inherited role relationship. Reproduced on PostgreSQL 15, 16, 17, and 18: 1. A table is owned by `old_owner`. 2. `deployer`...
Parent: #627 A valid non-superuser repair becomes unplannable when the declared schema owner already exists but the deployment role's SET-enabled membership is absent and is itself part of the desired...
## Summary Add an opt-in declarative global-state surface for PostgreSQL roles, memberships, database/schema/object ownership, and global default privileges. This intentionally requests a broader scope than #584 and #602. Referenced-role stubbing...
#518 reported that extensions (e.g. pgvector) installed in non-default schemas cause problems with `--plan-host`/`--plan-db`, in two distinct ways: 1. False-positive diffs when the plan and target databases disagree on the...
I'm wondering if the authors here have given consideration to implementing declarative configuration table changes. i.e. you would declare your reference tables' data with INSERT statements, and the tool would...
I'd like to collect some customer testimonials to feature on our website and better understand your use cases. Please share your comments with the following information (all fields are optional):...
This proposal introduces a safe, explicit, and idempotent workflow for handling `RENAME` operations. It centers around a version-controlled manifest file, `refactor.yaml`, which explicitly declares the developer's intent. To ensure operations...
Widening a column that any view reads fails at apply: ```sql -- current database CREATE TABLE orders (id bigserial PRIMARY KEY, total numeric(10,2) NOT NULL); CREATE VIEW order_totals AS SELECT...
I've just tried using `pgschema` with a schema that is not public. Unfortunately, this does not work as expected; I've encountered the following issues: 1. Creating a plan seems to...
I noticed that using schema prefixes does not work as expected. Example: ```sql create schema utils; create function utils.generate_something() returns text language plpgsql stable parallel safe as $$ begin return...