Skip to content
aiqbench takeAI Products

aiqbench analysis

This article details the release of pg-delta, a new open-source Postgres diff tool that resolves critical limitations in schema migration coverage for Supabase projects. By replacing the previous Python-based engine, it now accurately captures changes to domains, grants, and extension-managed objects while intelligently filtering out internal service schemas like Auth.
Source coveringSupabase
What this isA model's reading of the article and related coverage, written for aiqbench. Not the publisher's words.

Declarative Schemas 2.0 with pg-delta

Supabase10 min read

The migrations the CLI writes for you no longer skip RLS policy changes, grants, view settings, partitions, or domains.

On October 2 at Supabase Select we shipped Declarative Schemas 2.0. The Supabase CLI now generates migrations with pg-delta, a Postgres diff tool we wrote and open sourced, in place of migra, the technology behind our original implementation. Generated migrations now include RLS policy changes, grants, view settings, partitions, domains, and objects that extensions manage. Declarative schemas first launched in April 2025. You keep your schema in SQL files under supabase/schemas/, edit them, and the CLI writes the migration. In 2.0 that workflow is the same: edit a file, generate the migration, review it, and apply it. New CLI projects get 2.0 by default. Existing projects opt in with one config block. In this post we cover why we built pg-delta, how to turn it on, a working example, and what it does not do yet. migra is an open source Python tool that diffs two Postgres databases and emits the SQL between them. It has powered supabase db diff since the first CLI prototype in 2021. migra didn't understand domains, publications, or comments. Changes to them never appeared in the diff. You read every generated migration line by line to find what was missing. The limitations list in our…

Excerpt shown under the publisher's RSS terms · 200 words · full text and figures are on the publisher's site

Related coverage