Overview
Integrate all xmin modules into the sync command with automatic mode detection.
Reference
- Proposal: docs/20251208_Replication_Sync_Proposal.md
Scope
Sync Command (src/commands/sync.rs)
Add automatic wal_level detection and xmin fallback:
- Check source wal_level
- If 'logical' -> use existing logical replication code path
- If 'replica' (default) -> use new xmin sync path
- Clear INFO logging about which method is selected
Key Requirements
- Zero customer-facing flags (automatic detection)
- Clear logging of which sync method is selected
- Proper error handling and user feedback
Files to Modify
- src/commands/sync.rs
- src/lib.rs (add xmin module export)
- src/main.rs (if needed for daemon module)
Acceptance Criteria
Important
⚠️ DO NOT fix failing tests in files outside your scope. If you encounter test failures in:
- src/xmin/reader.rs (Gemini scope)
- src/xmin/state.rs (Gemini scope)
- src/xmin/reconciler.rs (Gemini scope)
- src/daemon/* (Gemini scope)
Create a comment noting the failure but do not attempt to fix it.
Dependencies
- All previous tasks (uses all xmin modules and daemon)
Overview
Integrate all xmin modules into the sync command with automatic mode detection.
Reference
Scope
Sync Command (src/commands/sync.rs)
Add automatic wal_level detection and xmin fallback:
Key Requirements
Files to Modify
Acceptance Criteria
Important
Create a comment noting the failure but do not attempt to fix it.
Dependencies