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_redisPostgreSQL 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
MIGRATEresolves target hosts via libcgetaddrinfo, 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-rc1results.
For the results on the current candidate, see Status.
Why RESP and SQL share one C implementation of Redis semantics.
Why PostgreSQL WAL replaces AOF, RDB and Redis replication.
How MIGRATE reaches another server, and its current limits.
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.