emulator: add MZ_METADATA_STORE switch for postgres/foundationdb#35087
Open
antiguru wants to merge 5 commits into
Open
emulator: add MZ_METADATA_STORE switch for postgres/foundationdb#35087antiguru wants to merge 5 commits into
antiguru wants to merge 5 commits into
Conversation
Contributor
Pre-merge checklist
|
def-
reviewed
Feb 19, 2026
Install FoundationDB client and server alongside PostgreSQL in the emulator base image. The entrypoint script now reads MZ_METADATA_STORE (defaulting to "postgres") to select which backend to start and which URLs to configure. Set MZ_METADATA_STORE=foundationdb to use FDB. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Use `foundationdb:?prefix=X` instead of embedding the cluster file path and legacy `options` parameter. Export FDB_CLUSTER_FILE so the FDB client discovers the cluster via the environment. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Avoid penalizing postgres-only users with the ~100 MB FoundationDB packages. The postgres image (materialized) no longer includes FDB, and a new materialized-fdb image provides the FDB-backed variant. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Replace directory symlink with individual file symlinks, since mzbuild cannot traverse a symlinked directory. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
materialized-base and materialized-fdb-base duplicated ~40 lines of shared setup (user creation, apt packages, console, nginx config) and the console version had already drifted (26.14.0-dev.0 vs 26.13.0-dev.0). Extract the common parts into materialized-common-base so both backend-specific bases extend it. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
607b223 to
a134ade
Compare
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.
Add FoundationDB as an alternative metadata store for the emulator image. Both PostgreSQL and FoundationDB are installed in the base image. The entrypoint reads
MZ_METADATA_STORE(default:postgres) to select which backend to start. SetMZ_METADATA_STORE=foundationdbto use FDB.🤖 Generated with Claude Code