Skip to content

Design

Design decisions behind pgredis.

These notes record the core architectural choices and scope boundaries of pgredis:

  • One semantic core — why all Redis command semantics execute inside the pg_redis PostgreSQL 18 C extension while the Go gateway handles protocol and session transport.
  • Persistence and replication scope — why PostgreSQL WAL, backup and replication replace Redis AOF, RDB and REPLICAOF, and how the 55 upstream test cases that depend on Redis-native persistence or replication are handled.
  • MIGRATE connections — how MIGRATE resolves target hosts via libc getaddrinfo, classifies connection versus write-stage errors, and interacts with database locks and SQL rollback.
  • MVP goal (v0.1.0) — the current goal approved on 2026-11-08: completion condition, scope, release list and deferred work; it replaces the P0–P6 completion condition.
  • Status review, 2026-11-08 — why the work did not reach a release before 2026-11-08, the decisions taken, and the v0.1.0-rc1 results.

For the results on the current candidate, see Status.

Why pgredis did not reach a release before 2026-11-08, what was decided, and what the MVP candidate measured.

The current pgredis goal: completion condition, scope, release list and deferred work for v0.1.0.