Support pg_durable installations across multiple databases - #386
Open
Pino de Candia (pinodeca) wants to merge 1 commit into
Open
Support pg_durable installations across multiple databases#386Pino de Candia (pinodeca) wants to merge 1 commit into
Pino de Candia (pinodeca) wants to merge 1 commit into
Conversation
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
Allow
CREATE EXTENSION pg_durablein satellite databases while keeping one shared Duroxide runtime/provider in the explicitly installed control database (pg_durable.database).docs/multi-database-installation.mdas the design/decision record;USER_GUIDE.mdanddocs/multi-database.mdprovide user-facing guidance.Operational Semantics
Install and initialize the control extension first, then install satellites. Preloading alone does not create provider objects. Dropping a satellite affects its own work; dropping the control extension destroys shared engine state for all satellites. There is no cross-database reference count or permanent drop veto.
pg_durable.max_origin_connectionsis a new restart-time shared origin connection budget (default 12). Independent new-transaction start admission remains per database.Upgrade & Migration
ALTER EXTENSION UPDATEon the control.Validation
Local validation completed on commit
86e039f5d62badaf058d682fda012a4ea0a33527:cargo build --features pg17passed.cargo clippy --features pg17 -- -D warningspassed.main. High-origin-count load and performance benchmarks were not run.These are local results; GitHub CI and colleague review are separate gates.
Try It
Use a disposable local PostgreSQL test environment. The repository scripts install the extension and restart the local test server.
For manual setup, follow Multi-Database Support. Useful review scenarios include two satellite roles with isolated metadata, an explicit third SQL target, drop/recreate while work is waiting, and control outage/recovery.
Local agent review artifacts in
.context/and the unrelatedduroxide-pg-opt/checkout are not part of this PR.