Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .changeset/pre.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"all-planes-ask",
"auth-trigger-user-defined-passthrough",
"brave-sails-kneel",
"catalog-export-filter",
"clean-bees-fetch",
"cold-students-vanish",
"curvy-buckets-collect",
Expand Down Expand Up @@ -59,6 +60,7 @@
"nine-candles-sleep",
"order-rls-policies-after-referenced-tables",
"pg-delta-partition-check-constraint-inhcount",
"pgmq-queue-trigger-fallback",
"redact-fdw-option-secrets",
"rich-regions-sneeze",
"ripe-ravens-doubt",
Expand All @@ -71,6 +73,7 @@
"tall-canyons-add",
"three-turtles-visit",
"tidy-zebras-judge",
"tough-boats-sink"
"tough-boats-sink",
"wasm-fdw-dependents"
]
}
18 changes: 18 additions & 0 deletions packages/pg-delta/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,23 @@
# @supabase/pg-delta

## 1.0.0-alpha.27

### Minor Changes

- b9b8b15: Add `--filter` option to the `catalog-export` CLI command to scope the exported catalog to matching schemas/objects.

### Patch Changes

- 71cce8a: fix(pg-delta): suppress user triggers on pgmq queue/archive tables in supabase integration

Follow-up to the Wasm FDW dependents fix. `pgmq.q_<name>` and `pgmq.a_<name>` are materialized lazily by `select pgmq.create('<name>')`, not by `CREATE EXTENSION pgmq`. The trigger extractor already drops these via the `pg_depend deptype='e'` row that pgmq records, but real-world cloud projects can lose that row (older pgmq versions — pgmq `1.4.4` which Supabase Cloud currently ships never records it — manual `pg_dump`/restore that strips extension deps, etc.), so `supabase db reset` aborts at the trigger statement with `relation "pgmq.q_<name>" does not exist`. Add a defensive name-match fallback in the supabase integration filter so the trigger is dropped even when the principled signal is missing.

- 71cce8a: fix(pg-delta): suppress Wasm FDW servers, foreign tables, and user mappings in supabase integration

Follow-up to CLI-1470. Also suppress SERVER (object/comment/security-label scopes), FOREIGN TABLE, and USER MAPPING changes whose parent wrapper is a Supabase Wasm FDW — identified by the `extensions.wasm_fdw_handler` / `extensions.wasm_fdw_validator` functions the `wrappers` extension ships — so `db pull` no longer emits `CREATE SERVER clerk_oauth_server` for platform Wasm FDWs that local Docker cannot provision.

The discriminator is the Wasm handler/validator function names, not the bare `extensions.*` namespace: contrib FDWs like `postgres_fdw` install their handler/validator into `extensions` on Supabase too, but they ARE available in the local image, so user-created `postgres_fdw` wrappers (and their servers, foreign tables, and user mappings) must still roundtrip. Server _privilege_ scope is likewise preserved — `GRANT/REVOKE ON SERVER` does not require superuser.

## 1.0.0-alpha.26

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/pg-delta/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@supabase/pg-delta",
"version": "1.0.0-alpha.26",
"version": "1.0.0-alpha.27",
"description": "PostgreSQL migrations made easy",
"keywords": [
"diff",
Expand Down