Skip to content

feat(pg-delta): add --filter to catalog-export#264

Merged
avallete merged 3 commits into
mainfrom
feat/catalog-export-filter
Jun 4, 2026
Merged

feat(pg-delta): add --filter to catalog-export#264
avallete merged 3 commits into
mainfrom
feat/catalog-export-filter

Conversation

@leandrocp
Copy link
Copy Markdown
Contributor

@leandrocp leandrocp commented May 25, 2026

This is a proposal to add --filter to catalog-export.

My use case is to export the realtime schema which is used in an internal admin tool to fix drifted schemas, see supabase/realtime#1866 (already deployed to PROD).

That page currently works because plan accepts --filter but the baseline (catalog-export) ends with way more data than it needs.

Disclaimer: I used Claude to assist the development and I don't know much about the internals of this project, but I tested on realtime and the generated catalog looks good.

This is a proposal to bring `--filter` to `catalog-export`.

My use case is to export the `realtime` schema which is used
in an internal admin tool to fix drifted schemas.
See supabase/realtime#1866

That page currently works because `plan` accepts `--filter` but
the baseline (catalog-export) ends with way more data than it needs.
@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented May 25, 2026

🦋 Changeset detected

Latest commit: 7310c89

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@supabase/pg-delta Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new Bot commented May 25, 2026

Open in StackBlitz

npm i https://pkg.pr.new/supabase/pg-toolbelt/@supabase/pg-delta@264
npm i https://pkg.pr.new/supabase/pg-toolbelt/@supabase/pg-topo@264

commit: 7310c89

@leandrocp leandrocp requested a review from avallete May 27, 2026 14:10
@leandrocp leandrocp changed the title feat(pgdelta): add --filter to catalog-export feat(pg-delta): add --filter to catalog-export Jun 3, 2026
@leandrocp leandrocp requested a review from jgoux June 3, 2026 22:49
Comment thread packages/pg-delta/src/core/catalog.filter.ts
Comment thread packages/pg-delta/src/cli/commands/catalog-export.ts
@avallete avallete added this pull request to the merge queue Jun 4, 2026
Merged via the queue into main with commit b9b8b15 Jun 4, 2026
65 checks passed
@avallete avallete deleted the feat/catalog-export-filter branch June 4, 2026 14:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants