Design
pgetcd’s companion repository accumulated 357 dated design and implementation records during development. This section condenses the architectural decisions that govern the current codebase and separates the active MVP scope from post-MVP roadmap and frozen research work.
Current goal and review
- Status review, 2026-11-08 — Where the project stood before the MVP decision: code almost untracked, P3 drifted into kernel accounting, and why the work did not converge; with the outcome up to
v0.1.0-rc2. - MVP goal (v0.1.0) — Approved on 2026-11-08: the
v0.1.0-rcNrelease candidate is the only completion condition, with the single-primary scope, the lean release checklist and the rule that verification stays proportionate to an MVP. The current candidate isv0.1.0-rc2(commit81691bc).
Core architecture decisions
- PostgreSQL as the authority — Why revisions, transactions, Leases, and event history live in logged PostgreSQL tables under a single meta-row lock rather than sequences or gateway caches (Design 0005).
- Certified publication — Why read requests write a WAL barrier, why responses wait for synchronous
COMMIT, and why unknown commits are never replayed (Design 0006). - Lease, Watch and history — Why Lease deadlines rebuild with a full TTL on restart, why
NOTIFYis only a wake hint, and how anchor generations support atomic compaction (Design 0007). - Runtime boundary — Why
pgetcd,pgsilo, andpgrediskeep separate gateway processes and extensions until shared runtime integration is built (Design 0004).
Post-MVP roadmap and research
- High availability roadmap — Target 3-node synchronous replication topology, primary fencing requirements, and single-container fault-injection findings (Design 0028, Design 0119).
- Recovery design — Point-in-time recovery protocol rebasing (
pgetcd-restore) and per-gateway publication revision journals (Design 0029, Design 0030). - The frozen native line — Summary of the 340+ records exploring custom wire stacks, Go runtime accounting, and the Linux shared-kernel accounting boundary (Design 0119, Design 0320, Design 0357).
One Go gateway and one extension; a meta-row lock and a fresh snapshot per request; no sequences.
Why reads write a barrier, why responses wait for synchronous commit, and why unknown commits are not replayed.
Full-TTL rebuild after restart, NOTIFY as a hint, and anchor generations for compaction.
Why etcd, S3 and Redis keep separate gateways instead of one shared runtime.
The post-MVP design for production HA, and the fault tests that informed it.
Point-in-time recovery and revision journals. Designed, not in the release.
The native PostgreSQL wire and runtime accounting work, and why it was frozen.
Where pgetcd stood before the MVP decision, why the work did not converge, and what changed.
The approved MVP scope, the lean release checklist and the verification rule for pgetcd v0.1.0.