feat(cli): use stack EphemeralPostgres for schema-tooling shadows - #6540
Open
avallete wants to merge 1 commit into
Open
feat(cli): use stack EphemeralPostgres for schema-tooling shadows#6540avallete wants to merge 1 commit into
avallete wants to merge 1 commit into
Conversation
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.
Contributor
Supabase CLI previewnpx --yes https://pkg.pr.new/supabase/cli/supabase@0ad5ae08f4cd99329214056033ea6ab102772071Preview package for commit |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
When
[experimental].stack/SUPABASE_EXPERIMENTAL_STACKis on,db diff,db pull, declarative generate/sync, andmigration squashuse the project stack for--localand provision throwaway shadow Postgres through a new public@supabase/stackEphemeralPostgresAPI. 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
listStacksidentity. Snapshots are runtime-kind specific. Cache files live understack-shadow-baseline-*.tarwith 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 migraare rejected.db resetand declarative--apply/--resetstill use the legacy volume recreate path. Stack data-dir wipe is a later follow-up.Stacked on #6517.