Skip to content

feat(cli): use stack EphemeralPostgres for schema-tooling shadows - #6540

Open
avallete wants to merge 1 commit into
feat/stack-command-optionsfrom
feat/stack-ephemeral-postgres
Open

feat(cli): use stack EphemeralPostgres for schema-tooling shadows#6540
avallete wants to merge 1 commit into
feat/stack-command-optionsfrom
feat/stack-ephemeral-postgres

Conversation

@avallete

@avallete avallete commented Sep 9, 2026

Copy link
Copy Markdown
Member

Summary

When [experimental].stack / SUPABASE_EXPERIMENTAL_STACK is on, db diff, db pull, declarative generate/sync, and migration squash use the project stack for --local and provision throwaway shadow Postgres through a new public @supabase/stack EphemeralPostgres API. Flag off keeps the legacy Docker SQL-template shadows.

The cluster is a scoped second instance (native host PGDATA or a named volume), not a listStacks identity. Snapshots are runtime-kind specific. Cache files live under stack-shadow-baseline-*.tar with the same keep-3 / 2-day TTL as the legacy namespace. The stack backend requires in-process pg-delta; --use-migra, --use-pgadmin, --use-pg-schema, and --diff-engine migra are rejected.

db reset and declarative --apply/--reset still use the legacy volume recreate path. Stack data-dir wipe is a later follow-up.

Stacked on #6517.

When [experimental].stack is on, db diff/pull, declarative generate/sync,
and migration squash provision throwaway shadows through @supabase/stack
instead of legacy Docker SQL-template containers.
@avallete
avallete requested a review from a team as a code owner September 9, 2026 09:25
@avallete avallete added the run-ci Run full develop CI (tests) on drafts and non-develop PRs. label Sep 9, 2026
@github-actions

github-actions Bot commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

Supabase CLI preview

npx --yes https://pkg.pr.new/supabase/cli/supabase@0ad5ae08f4cd99329214056033ea6ab102772071

Preview package for commit 0ad5ae0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

run-ci Run full develop CI (tests) on drafts and non-develop PRs.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant