Skip to content

This is the multi-page printable view of this section.

Return to the regular view of this page

Reference

Commands, data types, SQL API, transactions, Pub/Sub, Streams, configuration and limits.

This section documents the pgredis wire commands, PostgreSQL SQL functions, transaction and notification contracts, gateway flags, extension GUCs, and resource budgets.

Reference pages

  • Commands

    All 392 Redis 7.2.4 command and subcommand entries from spec/commands.json, grouped by family with implementation state.
  • Data types

    Strings, Hashes, Lists, Sets, Sorted Sets, Streams, Bitmaps, HyperLogLog, GEO, and object inspection commands.
  • SQL API

    redis.command, redis.command_bin, multi-transaction blocking and Pub/Sub session functions, and SQLSTATE error codes.
  • Transactions and retries

    MULTI/EXEC, WATCH, SQL transaction participation, and handling UNKNOWN outcomes after lost responses.
  • Pub/Sub and keyspace events

    Channel, pattern, and sharded subscriptions, notify-keyspace-events, and backpressure limits.
  • Streams and consumer groups

    Stream IDs, XADD/XRANGE/XTRIM, consumer groups, pending entries (XPENDING, XCLAIM, XAUTOCLAIM), and blocking reads.
  • Configuration

    pgredis gateway CLI flags, connection pools, pg_redis extension GUCs, and supported CONFIG GET/SET parameters.
  • Limits

    Request, reply, shared buffer, and backend workspace budgets, mutation-counter compaction, and tested 512 MiB capacity.

1 - Commands

The Redis 7.2.4 command inventory with implementation state per family.

This page is generated from spec/commands.json in the pgredis repository (v0.1.0-rc1, schema 0.54, commit 11411411d72ab45456904cc602cefbb13b68ff25), which tracks 392 Redis 7.2.4 command and subcommand entries:

  • 305 entries are marked partial-slice (implemented in the C extension, Go gateway, or both).
  • 87 entries are marked pending (32 Cluster, 22 Sentinel, 19 Scripting, and 14 Server commands that return explicit unsupported errors).
  • All 392 entries carry compatibility_verified: false in the specification file: partial-slice records implementation presence, not full certification. See Compatibility and Status for dated test results.

In the arity column, a positive integer is the exact argument count including the command word, and a negative integer is the minimum argument count (for example, -3 for SET means at least command, key, and value).

Summary by family

FamilyTotalpartial-slicependingExecution owner
String22220extension
Hash16160extension
List22220extension
Set17170extension
Sorted set35350extension
Stream25250extension
Bitmap770extension
GEO10100extension
HyperLogLog550extension
Keyspace34340extension
Transactions550gateway+extension
Pub/Sub15150extension
Connection26260extension, gateway, gateway+extension
Server766214extension
Cluster32032extension
Sentinel22022extension
Scripting23419extension

String

CommandArityOwnerImplementation
APPEND3extensionpartial-slice
DECR2extensionpartial-slice
DECRBY3extensionpartial-slice
GET2extensionpartial-slice
GETDEL2extensionpartial-slice
GETEX-2extensionpartial-slice
GETRANGE4extensionpartial-slice
GETSET3extensionpartial-slice
INCR2extensionpartial-slice
INCRBY3extensionpartial-slice
INCRBYFLOAT3extensionpartial-slice
LCS-3extensionpartial-slice
MGET-2extensionpartial-slice
MSET-3extensionpartial-slice
MSETNX-3extensionpartial-slice
PSETEX4extensionpartial-slice
SET-3extensionpartial-slice
SETEX4extensionpartial-slice
SETNX3extensionpartial-slice
SETRANGE4extensionpartial-slice
STRLEN2extensionpartial-slice
SUBSTR4extensionpartial-slice

Hash

CommandArityOwnerImplementation
HDEL-3extensionpartial-slice
HEXISTS3extensionpartial-slice
HGET3extensionpartial-slice
HGETALL2extensionpartial-slice
HINCRBY4extensionpartial-slice
HINCRBYFLOAT4extensionpartial-slice
HKEYS2extensionpartial-slice
HLEN2extensionpartial-slice
HMGET-3extensionpartial-slice
HMSET-4extensionpartial-slice
HRANDFIELD-2extensionpartial-slice
HSCAN-3extensionpartial-slice
HSET-4extensionpartial-slice
HSETNX4extensionpartial-slice
HSTRLEN3extensionpartial-slice
HVALS2extensionpartial-slice

List

CommandArityOwnerImplementation
BLMOVE6extensionpartial-slice
BLMPOP-5extensionpartial-slice
BLPOP-3extensionpartial-slice
BRPOP-3extensionpartial-slice
BRPOPLPUSH4extensionpartial-slice
LINDEX3extensionpartial-slice
LINSERT5extensionpartial-slice
LLEN2extensionpartial-slice
LMOVE5extensionpartial-slice
LMPOP-4extensionpartial-slice
LPOP-2extensionpartial-slice
LPOS-3extensionpartial-slice
LPUSH-3extensionpartial-slice
LPUSHX-3extensionpartial-slice
LRANGE4extensionpartial-slice
LREM4extensionpartial-slice
LSET4extensionpartial-slice
LTRIM4extensionpartial-slice
RPOP-2extensionpartial-slice
RPOPLPUSH3extensionpartial-slice
RPUSH-3extensionpartial-slice
RPUSHX-3extensionpartial-slice

Set

CommandArityOwnerImplementation
SADD-3extensionpartial-slice
SCARD2extensionpartial-slice
SDIFF-2extensionpartial-slice
SDIFFSTORE-3extensionpartial-slice
SINTER-2extensionpartial-slice
SINTERCARD-3extensionpartial-slice
SINTERSTORE-3extensionpartial-slice
SISMEMBER3extensionpartial-slice
SMEMBERS2extensionpartial-slice
SMISMEMBER-3extensionpartial-slice
SMOVE4extensionpartial-slice
SPOP-2extensionpartial-slice
SRANDMEMBER-2extensionpartial-slice
SREM-3extensionpartial-slice
SSCAN-3extensionpartial-slice
SUNION-2extensionpartial-slice
SUNIONSTORE-3extensionpartial-slice

Sorted set

CommandArityOwnerImplementation
BZMPOP-5extensionpartial-slice
BZPOPMAX-3extensionpartial-slice
BZPOPMIN-3extensionpartial-slice
ZADD-4extensionpartial-slice
ZCARD2extensionpartial-slice
ZCOUNT4extensionpartial-slice
ZDIFF-3extensionpartial-slice
ZDIFFSTORE-4extensionpartial-slice
ZINCRBY4extensionpartial-slice
ZINTER-3extensionpartial-slice
ZINTERCARD-3extensionpartial-slice
ZINTERSTORE-4extensionpartial-slice
ZLEXCOUNT4extensionpartial-slice
ZMPOP-4extensionpartial-slice
ZMSCORE-3extensionpartial-slice
ZPOPMAX-2extensionpartial-slice
ZPOPMIN-2extensionpartial-slice
ZRANDMEMBER-2extensionpartial-slice
ZRANGE-4extensionpartial-slice
ZRANGEBYLEX-4extensionpartial-slice
ZRANGEBYSCORE-4extensionpartial-slice
ZRANGESTORE-5extensionpartial-slice
ZRANK-3extensionpartial-slice
ZREM-3extensionpartial-slice
ZREMRANGEBYLEX4extensionpartial-slice
ZREMRANGEBYRANK4extensionpartial-slice
ZREMRANGEBYSCORE4extensionpartial-slice
ZREVRANGE-4extensionpartial-slice
ZREVRANGEBYLEX-4extensionpartial-slice
ZREVRANGEBYSCORE-4extensionpartial-slice
ZREVRANK-3extensionpartial-slice
ZSCAN-3extensionpartial-slice
ZSCORE3extensionpartial-slice
ZUNION-3extensionpartial-slice
ZUNIONSTORE-4extensionpartial-slice

Stream

CommandArityOwnerImplementation
XACK-4extensionpartial-slice
XADD-5extensionpartial-slice
XAUTOCLAIM-6extensionpartial-slice
XCLAIM-6extensionpartial-slice
XDEL-3extensionpartial-slice
XGROUP-2extensionpartial-slice
XGROUP CREATE-5extensionpartial-slice
XGROUP CREATECONSUMER5extensionpartial-slice
XGROUP DELCONSUMER5extensionpartial-slice
XGROUP DESTROY4extensionpartial-slice
XGROUP HELP2extensionpartial-slice
XGROUP SETID-5extensionpartial-slice
XINFO-2extensionpartial-slice
XINFO CONSUMERS4extensionpartial-slice
XINFO GROUPS3extensionpartial-slice
XINFO HELP2extensionpartial-slice
XINFO STREAM-3extensionpartial-slice
XLEN2extensionpartial-slice
XPENDING-3extensionpartial-slice
XRANGE-4extensionpartial-slice
XREAD-4extensionpartial-slice
XREADGROUP-7extensionpartial-slice
XREVRANGE-4extensionpartial-slice
XSETID-3extensionpartial-slice
XTRIM-4extensionpartial-slice

Bitmap

CommandArityOwnerImplementation
BITCOUNT-2extensionpartial-slice
BITFIELD-2extensionpartial-slice
BITFIELD_RO-2extensionpartial-slice
BITOP-4extensionpartial-slice
BITPOS-3extensionpartial-slice
GETBIT3extensionpartial-slice
SETBIT4extensionpartial-slice

GEO

CommandArityOwnerImplementation
GEOADD-5extensionpartial-slice
GEODIST-4extensionpartial-slice
GEOHASH-2extensionpartial-slice
GEOPOS-2extensionpartial-slice
GEORADIUS-6extensionpartial-slice
GEORADIUSBYMEMBER-5extensionpartial-slice
GEORADIUSBYMEMBER_RO-5extensionpartial-slice
GEORADIUS_RO-6extensionpartial-slice
GEOSEARCH-7extensionpartial-slice
GEOSEARCHSTORE-8extensionpartial-slice

HyperLogLog

CommandArityOwnerImplementation
PFADD-2extensionpartial-slice
PFCOUNT-2extensionpartial-slice
PFDEBUG3extensionpartial-slice
PFMERGE-2extensionpartial-slice
PFSELFTEST1extensionpartial-slice

Keyspace

CommandArityOwnerImplementation
COPY-3extensionpartial-slice
DEL-2extensionpartial-slice
DUMP2extensionpartial-slice
EXISTS-2extensionpartial-slice
EXPIRE-3extensionpartial-slice
EXPIREAT-3extensionpartial-slice
EXPIRETIME2extensionpartial-slice
KEYS2extensionpartial-slice
MIGRATE-6extensionpartial-slice
MOVE3extensionpartial-slice
OBJECT-2extensionpartial-slice
OBJECT ENCODING3extensionpartial-slice
OBJECT FREQ3extensionpartial-slice
OBJECT HELP2extensionpartial-slice
OBJECT IDLETIME3extensionpartial-slice
OBJECT REFCOUNT3extensionpartial-slice
PERSIST2extensionpartial-slice
PEXPIRE-3extensionpartial-slice
PEXPIREAT-3extensionpartial-slice
PEXPIRETIME2extensionpartial-slice
PTTL2extensionpartial-slice
RANDOMKEY1extensionpartial-slice
RENAME3extensionpartial-slice
RENAMENX3extensionpartial-slice
RESTORE-4extensionpartial-slice
SCAN-2extensionpartial-slice
SORT-2extensionpartial-slice
SORT_RO-2extensionpartial-slice
TOUCH-2extensionpartial-slice
TTL2extensionpartial-slice
TYPE2extensionpartial-slice
UNLINK-2extensionpartial-slice
WAIT3extensionpartial-slice
WAITAOF4extensionpartial-slice

Transactions

CommandArityOwnerImplementation
DISCARD1gateway+extensionpartial-slice
EXEC1gateway+extensionpartial-slice
MULTI1gateway+extensionpartial-slice
UNWATCH1gateway+extensionpartial-slice
WATCH-2gateway+extensionpartial-slice

Pub/Sub

CommandArityOwnerImplementation
PSUBSCRIBE-2extensionpartial-slice
PUBLISH3extensionpartial-slice
PUBSUB-2extensionpartial-slice
PUBSUB CHANNELS-2extensionpartial-slice
PUBSUB HELP2extensionpartial-slice
PUBSUB NUMPAT2extensionpartial-slice
PUBSUB NUMSUB-2extensionpartial-slice
PUBSUB SHARDCHANNELS-2extensionpartial-slice
PUBSUB SHARDNUMSUB-2extensionpartial-slice
PUNSUBSCRIBE-1extensionpartial-slice
SPUBLISH3extensionpartial-slice
SSUBSCRIBE-2extensionpartial-slice
SUBSCRIBE-2extensionpartial-slice
SUNSUBSCRIBE-1extensionpartial-slice
UNSUBSCRIBE-1extensionpartial-slice

Connection

CommandArityOwnerImplementation
AUTH-2gatewaypartial-slice
CLIENT-2extensionpartial-slice
CLIENT CACHING3extensionpartial-slice
CLIENT GETNAME2gatewaypartial-slice
CLIENT GETREDIR2extensionpartial-slice
CLIENT HELP2extensionpartial-slice
CLIENT ID2extensionpartial-slice
CLIENT INFO2extensionpartial-slice
CLIENT KILL-3extensionpartial-slice
CLIENT LIST-2extensionpartial-slice
CLIENT NO-EVICT3extensionpartial-slice
CLIENT NO-TOUCH3gateway+extensionpartial-slice
CLIENT PAUSE-3extensionpartial-slice
CLIENT REPLY3extensionpartial-slice
CLIENT SETINFO4gatewaypartial-slice
CLIENT SETNAME3gatewaypartial-slice
CLIENT TRACKING-3extensionpartial-slice
CLIENT TRACKINGINFO2extensionpartial-slice
CLIENT UNBLOCK-3extensionpartial-slice
CLIENT UNPAUSE2extensionpartial-slice
ECHO2gatewaypartial-slice
HELLO-1gatewaypartial-slice
PING-1gatewaypartial-slice
QUIT-1gatewaypartial-slice
RESET1gatewaypartial-slice
SELECT2gatewaypartial-slice

Server

CommandArityOwnerImplementation
ACL-2extensionpartial-slice
ACL CAT-2extensionpartial-slice
ACL DELUSER-3extensionpartial-slice
ACL DRYRUN-4extensionpartial-slice
ACL GENPASS-2extensionpartial-slice
ACL GETUSER3extensionpartial-slice
ACL HELP2extensionpartial-slice
ACL LIST2extensionpartial-slice
ACL LOAD2extensionpartial-slice
ACL LOG-2extensionpartial-slice
ACL SAVE2extensionpartial-slice
ACL SETUSER-3extensionpartial-slice
ACL USERS2extensionpartial-slice
ACL WHOAMI2extensionpartial-slice
BGREWRITEAOF1extensionpending
BGSAVE-1extensionpending
COMMAND-1extensionpartial-slice
COMMAND COUNT2extensionpartial-slice
COMMAND DOCS-2extensionpartial-slice
COMMAND GETKEYS-3extensionpartial-slice
COMMAND GETKEYSANDFLAGS-3extensionpartial-slice
COMMAND HELP2extensionpartial-slice
COMMAND INFO-2extensionpartial-slice
COMMAND LIST-2extensionpartial-slice
CONFIG-2extensionpartial-slice
CONFIG GET-3extensionpartial-slice
CONFIG HELP2extensionpartial-slice
CONFIG RESETSTAT2extensionpartial-slice
CONFIG REWRITE2extensionpartial-slice
CONFIG SET-4extensionpartial-slice
DBSIZE1extensionpartial-slice
DEBUG-2extensionpartial-slice
FAILOVER-1extensionpending
FLUSHALL-1extensionpartial-slice
FLUSHDB-1extensionpartial-slice
INFO-1extensionpartial-slice
LASTSAVE1extensionpartial-slice
LATENCY-2extensionpartial-slice
LATENCY DOCTOR2extensionpartial-slice
LATENCY GRAPH3extensionpartial-slice
LATENCY HELP2extensionpartial-slice
LATENCY HISTOGRAM-2extensionpartial-slice
LATENCY HISTORY3extensionpartial-slice
LATENCY LATEST2extensionpartial-slice
LATENCY RESET-2extensionpartial-slice
LOLWUT-1extensionpartial-slice
MEMORY-2extensionpartial-slice
MEMORY DOCTOR2extensionpartial-slice
MEMORY HELP2extensionpartial-slice
MEMORY MALLOC-STATS2extensionpartial-slice
MEMORY PURGE2extensionpartial-slice
MEMORY STATS2extensionpartial-slice
MEMORY USAGE-3extensionpartial-slice
MODULE-2extensionpartial-slice
MODULE HELP2extensionpartial-slice
MODULE LIST2extensionpartial-slice
MODULE LOAD-3extensionpending
MODULE LOADEX-3extensionpending
MODULE UNLOAD3extensionpending
MONITOR1extensionpartial-slice
PSYNC-3extensionpending
REPLCONF-1extensionpending
REPLICAOF3extensionpending
RESTORE-ASKING-4extensionpending
ROLE1extensionpartial-slice
SAVE1extensionpending
SHUTDOWN-1extensionpending
SLAVEOF3extensionpending
SLOWLOG-2extensionpartial-slice
SLOWLOG GET-2extensionpartial-slice
SLOWLOG HELP2extensionpartial-slice
SLOWLOG LEN2extensionpartial-slice
SLOWLOG RESET2extensionpartial-slice
SWAPDB3extensionpartial-slice
SYNC1extensionpending
TIME1extensionpartial-slice

Cluster

CommandArityOwnerImplementation
ASKING1extensionpending
CLUSTER-2extensionpending
CLUSTER ADDSLOTS-3extensionpending
CLUSTER ADDSLOTSRANGE-4extensionpending
CLUSTER BUMPEPOCH2extensionpending
CLUSTER COUNT-FAILURE-REPORTS3extensionpending
CLUSTER COUNTKEYSINSLOT3extensionpending
CLUSTER DELSLOTS-3extensionpending
CLUSTER DELSLOTSRANGE-4extensionpending
CLUSTER FAILOVER-2extensionpending
CLUSTER FLUSHSLOTS2extensionpending
CLUSTER FORGET3extensionpending
CLUSTER GETKEYSINSLOT4extensionpending
CLUSTER HELP2extensionpending
CLUSTER INFO2extensionpending
CLUSTER KEYSLOT3extensionpending
CLUSTER LINKS2extensionpending
CLUSTER MEET-4extensionpending
CLUSTER MYID2extensionpending
CLUSTER MYSHARDID2extensionpending
CLUSTER NODES2extensionpending
CLUSTER REPLICAS3extensionpending
CLUSTER REPLICATE3extensionpending
CLUSTER RESET-2extensionpending
CLUSTER SAVECONFIG2extensionpending
CLUSTER SET-CONFIG-EPOCH3extensionpending
CLUSTER SETSLOT-4extensionpending
CLUSTER SHARDS2extensionpending
CLUSTER SLAVES3extensionpending
CLUSTER SLOTS2extensionpending
READONLY1extensionpending
READWRITE1extensionpending

Sentinel

CommandArityOwnerImplementation
SENTINEL-2extensionpending
SENTINEL CKQUORUM3extensionpending
SENTINEL CONFIG-4extensionpending
SENTINEL DEBUG-2extensionpending
SENTINEL FAILOVER3extensionpending
SENTINEL FLUSHCONFIG2extensionpending
SENTINEL GET-MASTER-ADDR-BY-NAME3extensionpending
SENTINEL HELP2extensionpending
SENTINEL INFO-CACHE-3extensionpending
SENTINEL IS-MASTER-DOWN-BY-ADDR6extensionpending
SENTINEL MASTER3extensionpending
SENTINEL MASTERS2extensionpending
SENTINEL MONITOR6extensionpending
SENTINEL MYID2extensionpending
SENTINEL PENDING-SCRIPTS2extensionpending
SENTINEL REMOVE3extensionpending
SENTINEL REPLICAS3extensionpending
SENTINEL RESET3extensionpending
SENTINEL SENTINELS3extensionpending
SENTINEL SET-5extensionpending
SENTINEL SIMULATE-FAILURE-3extensionpending
SENTINEL SLAVES3extensionpending

Scripting

CommandArityOwnerImplementation
EVAL-3extensionpending
EVALSHA-3extensionpending
EVALSHA_RO-3extensionpending
EVAL_RO-3extensionpending
FCALL-3extensionpending
FCALL_RO-3extensionpending
FUNCTION-2extensionpartial-slice
FUNCTION DELETE3extensionpending
FUNCTION DUMP2extensionpending
FUNCTION FLUSH-2extensionpartial-slice
FUNCTION HELP2extensionpending
FUNCTION KILL2extensionpending
FUNCTION LIST-2extensionpending
FUNCTION LOAD-3extensionpending
FUNCTION RESTORE-3extensionpending
FUNCTION STATS2extensionpending
SCRIPT-2extensionpartial-slice
SCRIPT DEBUG3extensionpending
SCRIPT EXISTS-3extensionpending
SCRIPT FLUSH-2extensionpartial-slice
SCRIPT HELP2extensionpending
SCRIPT KILL2extensionpending
SCRIPT LOAD3extensionpending

2 - Data types

Strings, hashes, lists, sets, sorted sets, streams, bitmaps, HyperLogLog and geo.

pgredis implements command families for the core Redis 7.2.4 data types and derived structures inside PostgreSQL 18 tables. Every key has one metadata row in redis._keyspace and stores its payload in the matching typed table. See Storage for the underlying table layout and Commands for the per-command list.

Core types

TypeBacking tablePrimary useRepresentative commands
Stringredis._stringByte sequences, integers, floats, or bitmapsSET, GET, MSET, MGET, INCR, INCRBYFLOAT, LCS
Hashredis._hashField/value maps under one keyHSET, HGET, HMGET, HGETALL, HINCRBY, HRANDFIELD, HSCAN
Listredis._list, redis._list_lengthOrdered sequences of elements (duplicates allowed)LPUSH, RPUSH, LPOP, LRANGE, LINDEX, LINSERT, BLMOVE, BLPOP
Setredis._setUnordered collections of unique membersSADD, SREM, SMEMBERS, SISMEMBER, SUNION, SINTER, SSCAN
Sorted setredis._zsetUnique members ordered by float8 score, then raw member bytesZADD, ZRANGE, ZREM, ZSCORE, ZRANK, ZUNIONSTORE, BZPOPMIN
Streamredis._stream, redis._stream_group, redis._stream_pelAppend-only entries ordered by (ms, seq) ID with consumer groupsXADD, XRANGE, XREAD, XGROUP, XREADGROUP, XACK, XAUTOCLAIM

Keys, string values, hash fields, list elements, set members, and sorted-set members are stored as bytea and preserve arbitrary binary sequences, including NUL (\x00) bytes. When calling from SQL with non-UTF-8 or NUL-containing bytes, use redis.command_bin.

Bitmaps, GEO, and HyperLogLog

  • Bitmaps: SETBIT, GETBIT, BITCOUNT, BITPOS, BITOP, and BITFIELD / BITFIELD_RO operate on the underlying String value in redis._string (redis._bitmap helpers), preserving byte-exact compatibility with GET and SET.
  • GEO: GEOADD, GEODIST, GEOHASH, GEOPOS, GEORADIUS, GEORADIUSBYMEMBER, GEOSEARCH, and GEOSEARCHSTORE store 52-bit geohash integers as scores inside redis._zset. Radius and box queries, result limits, ASC/DESC ordering, and destination key writes are supported; manually inserted scores outside the valid GEO domain differ from Redis in edge-case error reporting.
  • HyperLogLog: PFADD, PFCOUNT, and PFMERGE store the Redis 7.2.4 sparse and dense HLL representations inside String values (HYLL header), so GET and SET can read or restore raw HyperLogLog state directly.

Object operations

  • DUMP and RESTORE: DUMP serializes a single key in Redis RDB v11 payload format with a 64-bit CRC64 checksum, and RESTORE reconstructs the key (REPLACE, ABSTTL, IDLETIME, FREQ). They operate on individual keys and do not read or write whole-instance .rdb or AOF files; use PostgreSQL backup tools for database backups.
  • OBJECT and DEBUG OBJECT: OBJECT ENCODING reports the Redis-compatible encoding name (int, embstr, raw, listpack, hashtable, skiplist, stream). OBJECT IDLETIME and OBJECT FREQ require pg_redis.object_heat_tracking = on, and exact listpack/quicklist transition tracking requires pg_redis.list_layout_tracking = on (both default to off so ordinary reads and list writes avoid extra metadata updates; see Compatibility).

3 - SQL API

redis.command, redis.command_bin, sessions for blocking and Pub/Sub, errors and savepoints.

The pg_redis extension exposes SQL functions in schema redis so PostgreSQL transactions, stored procedures, and triggers can execute Redis commands in the same transaction as relational tables. Every function returns wire-formatted RESP replies as bytea.

For step-by-step examples, see SQL rollback, Binary keys and values, and Transactional outbox.

Command functions

FunctionArgumentsDescription
redis.command(text[], integer DEFAULT 0)Command and arguments as text[], followed by logical database number (0..15)Executes one command and returns a RESP2 reply as bytea.
redis.command_bin(bytea[], integer DEFAULT 0)Command and arguments as bytea[], followed by logical database number (0..15)Binary-safe entry point for NUL (\x00) bytes or non-UTF-8 payloads; returns a RESP2 reply as bytea.
SELECT encode(redis.command(ARRAY['PING']), 'hex');
-- 2b504f4e470d0a (+PONG\r\n)

SELECT convert_from(redis.command(ARRAY['GET', 'example:key'], 1), 'UTF8');
-- Reads example:key from logical database 1

Calling redis.command invokes redis.command_bin internally, so the calling PostgreSQL role requires USAGE ON SCHEMA redis, EXECUTE on both functions, and EXECUTE on the required capability marker (redis._read(), redis._write(), or redis._admin()). See Authentication and permissions for the complete GRANT list.

Errors, savepoints, and transaction scope

  • Shared transaction: Both functions execute inside the caller’s READ COMMITTED PostgreSQL transaction (REPEATABLE READ and SERIALIZABLE are rejected). Even when invoked from a SQL SELECT, a mutating command such as SET writes rows and requires redis._write().
  • SQLSTATE codes: Redis command errors (such as WRONGTYPE or syntax errors) raise SQLSTATE RD001. Commands blocked by CLIENT PAUSE raise SQLSTATE RD002. PostgreSQL engine errors (such as deadlocks or constraint failures) retain their native PostgreSQL SQLSTATE codes.
  • Savepoint recovery: Because an unhandled RD001 aborts the current SQL transaction block, wrap fallible Redis calls in a SAVEPOINT (or a PL/pgSQL BEGIN ... EXCEPTION WHEN SQLSTATE 'RD001' THEN ... END block) to recover without losing earlier SQL work.
  • Per-call database index: The db parameter applies only to that function call. Executing SELECT inside redis.command does not change the logical database for subsequent SQL calls.

Blocking and Pub/Sub session API

Ordinary SQL calls cannot hold a transaction open while waiting for another transaction to publish a message or push a list item. For blocking commands (BLPOP, BLMOVE, BZPOPMIN, XREAD BLOCK, XREADGROUP BLOCK, WAIT) and Pub/Sub subscriptions across multiple SQL transactions, use the session functions:

FunctionPositional parametersReturn value (bytea)
redis.blocking_begin(bytea[], bytea, integer DEFAULT 0)args, token, db=0Registers a blocking command with RESP2 reply encoding; returns a 2-element RESP2 array [flag, result].
redis.blocking_begin(bytea[], bytea, integer, integer)args, token, db, protocolRegisters a blocking command with explicit reply protocol (2 or 3); returns [flag, result].
redis.blocking_poll(bytea, integer DEFAULT 0)token, db=0Polls for completion and renews the lease; returns [flag, result].
redis.blocking_cancel(bytea, integer DEFAULT 0)token, db=0Deletes the registration and returns +OK\r\n.
redis.pubsub_open(bytea, integer DEFAULT 2)token, protocol=2Opens a Pub/Sub session with protocol 2 or 3; returns +OK\r\n.
redis.pubsub_change(bytea, bytea[])token, argsApplies a subscription command (SUBSCRIBE, UNSUBSCRIBE, PSUBSCRIBE, SSUBSCRIBE, etc.); returns [count, frames].
redis.pubsub_poll(bytea)tokenDequeues pending messages in the current transaction; returns [count, frames].
redis.pubsub_cancel(bytea)tokenCloses the Pub/Sub session and deletes queued messages; returns +OK\r\n.

Parameter and lifecycle rules:

  • token is a unique 32-byte bytea generated by the caller for each blocking wait or Pub/Sub session. All subsequent poll, change, and cancel calls must use the same LOGIN and active role.
  • For blocking operations, [flag, result] has flag = 0 (with a null bulk string) while waiting, and flag = 1 once fulfilled. Register with blocking_begin and commit first, then call blocking_poll in subsequent transactions. Repeated polls after completion return the fixed result without popping a second element.
  • For Pub/Sub, pubsub_poll deletes delivered rows from redis._pubsub_event inside the caller’s transaction; rolling back that transaction restores the messages to the queue.

4 - Transactions and retries

MULTI, EXEC, WATCH, commit outcomes and when a client may retry.

SQL callers and Redis wire clients share the same PostgreSQL storage tables and WAL, but they enter transactions through different boundaries.

MULTI, EXEC, and WATCH

MULTI starts a command queue in the Go gateway. EXEC dispatches the queued commands inside a single PostgreSQL READ COMMITTED transaction. An idle MULTI or WATCH session on a client connection does not hold an open PostgreSQL transaction in the background.

ConditionBehavior on EXEC
Unknown command or wrong arity while queuingQueuing records the syntax error and EXEC aborts the queue with -EXECABORT Transaction discarded because of previous errors.
Runtime command error inside EXEC (for example WRONGTYPE)That slot in the EXEC array reply contains the error frame; sibling commands in the queue still execute and commit, matching Redis.
Watched key modified before EXECEXEC returns a null array reply (*-1\r\n in RESP2, _\r\n in RESP3) and applies no changes.
PostgreSQL engine error (such as deadlock or out-of-workspace error)The entire PostgreSQL transaction rolls back so no partial EXEC state persists.
  • WATCH on existing and missing keys: WATCH registers key digests in redis._watch. If another client creates and then deletes a watched missing key (or modifies a key and restores its previous value), row triggers record the revision change and EXEC detects the conflict.
  • Deterministic command time and wakeups: All commands inside one EXEC batch share a single timestamp for key expiry checks. Blocked clients waiting on keys touched by EXEC observe the final committed state after the entire queue finishes.

SQL transactions

Multiple calls to redis.command and redis.command_bin inside BEGIN ... COMMIT join the caller’s outer SQL transaction:

  • Relational table rows, Redis key mutations, and queued Pub/Sub / tracking / blocking notifications commit or roll back atomically. See the SQL rollback tutorial.
  • Only READ COMMITTED transaction isolation is supported. Calling redis.command under REPEATABLE READ or SERIALIZABLE raises an explicit error because internal lock-wait re-reads require fresh statement snapshots.
  • Mixing SQL row locks and Redis key mutations across concurrent transactions in different orders can form a PostgreSQL deadlock. PostgreSQL aborts one participant with SQLSTATE 40P01; applications should handle deadlock retries at the transaction boundary.

Handling lost responses (UNKNOWN outcomes)

When a client sends a mutating command (INCR, LPOP, PUBLISH, XADD, EXEC) and the network connection drops or times out before the reply arrives, the PostgreSQL transaction may have already committed. Reconnecting and running PING only proves that the new socket works; it cannot reveal whether the previous write committed.

  • Gateway behavior: When a connection becomes uncertain (read/write timeout, PostgreSQL link drop, or output buffer overflow), the gateway closes the client socket and retires the backend connection without automatically re-running the command.
  • Client library retry pitfalls: Many Redis client libraries enable automatic command retries by default. In Linux acceptance tests (aade9dfa0, 2026-10-15), a default redis-py 6.4.0 client (which defaults to 3 retries) repeated an INCR after a dropped reply and incremented the counter to 2. Setting Retry(NoBackoff(), 0) sent the command once and raised a connection error, leaving the caller responsible for resolving the UNKNOWN state. Even with zero connection retries, redis-py’s Redis.transaction() helper catches WatchError and re-runs its callback when an EXEC reply is lost.
  • Safe retry patterns: For non-idempotent operations, either disable automatic client retries and inspect application state before retrying, or record an idempotency key / outbox row in the same transaction (as shown in the Transactional outbox tutorial).

5 - Pub/Sub and keyspace events

Channels, patterns, sharded Pub/Sub and keyspace notifications.

pgredis implements Redis Pub/Sub channels (SUBSCRIBE, UNSUBSCRIBE, PUBLISH), pattern subscriptions (PSUBSCRIBE, PUNSUBSCRIBE), standalone sharded Pub/Sub (SSUBSCRIBE, SUNSUBSCRIBE, SPUBLISH), introspection (PUBSUB CHANNELS, PUBSUB NUMSUB, PUBSUB NUMPAT, PUBSUB SHARDCHANNELS, PUBSUB SHARDNUMSUB), and keyspace notifications (notify-keyspace-events).

Subscriptions and transactional delivery

  • Commit-ordered registration: The gateway confirms SUBSCRIBE, PSUBSCRIBE, or SSUBSCRIBE only after PostgreSQL commits the subscription registration in redis._pubsub_session. Any PUBLISH or SPUBLISH committed afterwards reaches the subscriber.
  • Transactional publishing: Because PUBLISH inserts into redis._pubsub_event inside the publisher’s PostgreSQL transaction, rolling back a SQL transaction or aborting EXEC discards any messages published inside that transaction. Publishing the same payload twice in committed transactions delivers two distinct messages.
  • Sharded Pub/Sub scope: SSUBSCRIBE, SUNSUBSCRIBE, and SPUBLISH operate within the standalone PostgreSQL database; they do not route messages across a Redis Cluster.
  • SQL session API: SQL callers use redis.pubsub_open, redis.pubsub_change, redis.pubsub_poll, and redis.pubsub_cancel. Commit the subscription transaction before publishing from another connection. pubsub_poll deletes delivered messages in its own transaction, and a rollback restores them.

Keyspace notifications

CONFIG SET notify-keyspace-events <flags> enables keyspace (__keyspace@<db>__:<key>) and keyevent (__keyevent@<db>__:<event>) notifications across all 16 logical Redis databases in the current PostgreSQL database (requires redis._admin() capability):

  • Changes to notify-keyspace-events and emitted notifications participate in SQL transactions and MULTI/EXEC commit or rollback.
  • Notifications reflect committed database mutations; they do not prove that a subscriber socket finished reading the frame.
  • When a key with a TTL expires, read queries hide the key immediately at expires_at <= clock_timestamp(), while the expired keyspace notification is emitted when either a foreground command or the background maintenance worker physically deletes the expired row. See Expiry and session lifecycle.

Backpressure and session limits

Pub/Sub sessions and queued messages in redis._pubsub_session and redis._pubsub_event are bounded by admission limits:

ResourceDefault limit
Session lease TTL120 seconds
Queued message payload per client1 MiB
Queued message frames per client1,024
Total retained Pub/Sub payload across sessions64 MiB
Active Pub/Sub sessions4,096
Total subscription registrations16,384

Additionally, CONFIG SET client-output-buffer-limit enforces pubsub class hard and soft buffer limits (default 32 MiB hard, 8 MiB soft for 60 seconds; see Configuration). When a slow or stalled subscriber exceeds its queue or output buffer limit, pg_redis marks the route failed, logs a pg_redis Pub/Sub route failure decision entry in the PostgreSQL server log, and the gateway closes the client connection. Disconnected clients must reconnect and re-subscribe; Pub/Sub subscriptions and unread queues are transient session state and are not restored across server restarts or pg_dump backups.

6 - Streams and consumer groups

XADD, XREAD, consumer groups, pending entries and acknowledgements.

A Redis Stream stores append-only entries ordered by a two-part identifier (milliseconds-sequence). Each entry contains an ordered list of binary field/value pairs. Consumer groups allow multiple workers to partition a stream, track unacknowledged work in a Pending Entries List (PEL), and transfer stalled entries.

For an end-to-end transactional example combining SQL tables with Redis Streams, see the Transactional outbox tutorial.

Entries, IDs, and trimming

  • Full 128-bit ID domain: Stream IDs consist of two unsigned 64-bit integers (ms-seq). pgredis preserves the full uint64 range for both components inside redis._stream.
  • Entry payload fidelity: Field/value pairs retain their exact insertion order, duplicate field names within the same entry, and arbitrary binary bytes (including NUL).
  • Write, read, and trim commands: Use XADD to append entries (NOMKSTREAM, MAXLEN, MINID), XRANGE and XREVRANGE to query ID intervals (-, +, exclusive ( bounds, COUNT), XLEN to read the entry count, and XDEL or XTRIM to remove entries.
  • Approximate trimming and XSETID: Approximate trimming (MAXLEN ~ or MINID ~) follows internal stream node boundaries configured by stream-node-max-entries and stream-node-max-bytes, so it may retain more entries than the requested threshold. XSETID updates stream metadata (last_generated_id, entries_added, max_deleted_entry_id) without inserting an entry or waking blocked readers.

Consumer groups and pending entries

  • Group lifecycle: XGROUP CREATE (MKSTREAM, ENTRIESREAD), XGROUP SETID, XGROUP DESTROY, XGROUP CREATECONSUMER, and XGROUP DELCONSUMER manage consumer group state in redis._stream_group.
  • Reading and acknowledging: XREADGROUP GROUP <group> <consumer> ... STREAMS <key> > delivers new entries and records them in redis._stream_pel unless NOACK is specified. XACK removes acknowledged entries from the PEL.
  • Inspecting and claiming stalled work: XPENDING inspects unacknowledged entries by ID range, idle time (IDLE), and consumer. XCLAIM and XAUTOCLAIM transfer ownership of pending entries to another consumer and increment delivery counters.
  • Deleted entries in the PEL: If an entry is deleted with XDEL while still referenced in redis._stream_pel, historical XREADGROUP (0) or XCLAIM calls return a nil/empty payload for that ID, matching Redis 7.2.4. Known gaps in v0.1.0-rc1: XINFO GROUPS computes lag from stream length rather than adjusting for XDEL, and XAUTOCLAIM has one cursor formatting difference when draining an empty queue (99/101 in unit/type/stream-cgroups; see Status).

Blocking reads

  • RESP connections: XREAD BLOCK <ms> and XREADGROUP BLOCK <ms> wait for matching XADD commits. Inside MULTI/EXEC, BLOCK options run non-blockingly as immediate reads; external clients blocked on a stream wake only after an EXEC batch or SQL transaction commits.
  • SQL transactions: Ordinary redis.command calls cannot block and commit a caller’s transaction while waiting. SQL callers use redis.blocking_begin, redis.blocking_poll, and redis.blocking_cancel across transactions.
  • Restart behavior: Stream entries, consumer group offsets (last_delivered_id), and PEL records persist in PostgreSQL WAL and survive restarts and pg_dump / pg_restore, whereas active BLOCK network waits are transient and require clients to reconnect.

7 - Configuration

Gateway flags and pg_redis settings with defaults.

Configuration is split between command-line flags on the pgredis Go gateway executable (cmd/pgredis/main.go) and database-level settings managed by PostgreSQL and the pg_redis extension (v0.1.0-rc1, schema 0.54, commit 11411411d72ab45456904cc602cefbb13b68ff25).

Gateway CLI flags

FlagDefaultDescription
-listen127.0.0.1:56379RESP listener address (Mimus assigns 6379 in standard deployments).
-pgpostgres://127.0.0.1:55432/pgredis?sslmode=disablePostgreSQL connection URL without credentials.
-auth-modenativeAuthentication mode: native (PostgreSQL roles) or redis-acl (redis._acl_user).
-acl-service-user(empty)Bound PostgreSQL LOGIN role used when -auth-mode redis-acl is active.
-acl-service-password-file(empty)File containing the ACL service role password (one trailing newline stripped); falls back to PGREDIS_ACL_SERVICE_PASSWORD.
-default-userappPostgreSQL LOGIN role used for single-argument AUTH <password> in native mode.
-client-default-resp2Initial wire protocol for new connections and RESET (2 or 3).
-max-clients1024Maximum concurrent RESP client connections.
-max-pools8Maximum cached PostgreSQL identity connection pools.
-pool-size4Maximum PostgreSQL backend connections per identity pool (1..2147483647).
-tls-cert(empty)Server TLS certificate path (required when -listen is non-loopback).
-tls-key(empty)Server TLS private key path (required when -listen is non-loopback).
-max-bulk-bytes536870912 (512 MiB)Maximum bytes for a single request bulk argument.
-max-frame-bytes1074790400 (1 GiB + 1 MiB)Maximum sum of argument bytes in a single request frame.
-max-reply-bytes1074790400 (1 GiB + 1 MiB)Maximum wire bytes for a complete reply, including EXEC child replies.
-max-input-bytes2147483648 (2 GiB)Shared budget across connections for live input payloads and bookkeeping.
-max-output-bytes2147483648 (2 GiB)Shared budget across connections for live replies, workspace, and bookkeeping.
-max-pg-read-bytes2147483648 (2 GiB)Shared budget for PostgreSQL receive buffers and DataRow metadata.
-max-pg-message-bytes1073741822 (1 GiB - 2 B)Maximum bytes in a single PostgreSQL wire message body.
-frame-read-timeout30sDeadline to finish reading a frame after its first byte arrives.
-command-timeout30sPer-command execution timeout against PostgreSQL.
-write-timeout10sDeadline for writing a reply frame to the client socket.
-tls-handshake-timeout5sDeadline for completing a client TLS handshake.
-versionfalsePrint pgredis 0.1.0 and exit.

The -pg URL must never contain a password. In native mode, clients supply their PostgreSQL role credentials via AUTH or HELLO ... AUTH. In redis-acl mode, the gateway connects with -acl-service-user and verifies per-user hashes inside redis._acl_user.

Connection pools and default protocol

  • Identity-isolated pools: The gateway isolates connection pools by database and authenticated principal (-max-pools 8, -pool-size 4). Active checkout references prevent pool eviction, and up to 4 additional short-lived connections are permitted for credential verification. Connections return to a pool only after transaction state and session state (redis._pool_reset()) are cleanly reset; any uncertain connection is closed immediately.
  • Default RESP version: -client-default-resp 3 starts new connections in RESP3 mode instead of RESP2. HELLO 2 or HELLO 3 switches the active connection protocol, AUTH preserves it, and RESET restores the gateway’s -client-default-resp default.

PostgreSQL extension GUCs

Configure these PostgreSQL GUCs in postgresql.conf (or with ALTER DATABASE ... SET as a superuser):

GUCDefaultContextDescription
pg_redis.maintenance_database'postgres'postmaster (shared_preload_libraries)Target database where the background maintenance worker reclaims expired keys and leases.
pg_redis.maintenance_role'postgres'postmaster (shared_preload_libraries)PostgreSQL role used by the background maintenance worker.
pg_redis.object_heat_trackingoffsuperuserWhen on, every key access updates LRU/LFU metadata in redis._object_heat so OBJECT IDLETIME and OBJECT FREQ report live values (causing plain reads to write WAL).
pg_redis.list_layout_trackingoffsuperuserWhen on, newly created Lists track exact Redis listpack/quicklist encoding transitions on every write.

Redis CONFIG GET and CONFIG SET

pg_redis persists selected Redis runtime settings inside PostgreSQL tables so they participate in SQL transactions, savepoints, and pg_dump backups:

ParameterDefaultBacking tableEffect
notify-keyspace-events"" (disabled)redis._configEnables keyspace (K) and keyevent (E) Pub/Sub notifications.
slowlog-log-slower-than10000 (10 ms)redis._slowlog_configMicrosecond threshold for recording entries in redis._slowlog (negative disables).
slowlog-max-len128redis._slowlog_configMaximum retained slowlog entries.
latency-tracking-info-percentiles"50 99 99.9"redis._slowlog_configSpace-separated percentile list formatted in INFO latencystats.
acllog-max-len128redis._acl_configMaximum entries retained in redis._acl_log for ACL LOG.
requirepass""redis._acl_configPassword for the Redis default ACL user (does not alter PostgreSQL LOGIN roles).
acl-pubsub-default"resetchannels"redis._acl_configDefault Pub/Sub channel policy (resetchannels or allchannels) for new ACL users and RESET.
tracking-table-max-keys1000000redis._tracking_configMaximum tracked keys in redis._tracking_key before earlier entries are evicted and invalidated.
client-output-buffer-limit"normal 0 0 0 slave 268435456 67108864 60 pubsub 33554432 8388608 60"redis._output_configPer-class <hard> <soft> <seconds> output buffer limits (replica is accepted as an alias for slave).
hash-max-listpack-entries, hash-max-listpack-value, list-max-listpack-size, list-compress-depth, set-max-intset-entries, set-max-listpack-entries, set-max-listpack-value, zset-max-listpack-entries, zset-max-listpack-value, stream-node-max-bytes, stream-node-max-entriesRedis 7.2.4 defaultsredis._configThresholds used for OBJECT ENCODING reporting and approximate XTRIM node boundaries.

Client output buffer limits and route logs

  • client-output-buffer-limit accounting: normal limits apply to ordinary, MONITOR, and tracking-only connections (0 0 0 disabled by default); pubsub limits apply to subscribed connections (32 MiB hard, 8 MiB soft for 60 seconds by default). Accounting sums retained Go reply bytes plus unread rows in redis._pubsub_event or the MONITOR ring. Exceeding a hard or sustained soft limit closes the connection without sending an extra error frame.
  • Server-side route failure log: When a Pub/Sub or tracking route fails a capacity, message-count, single-message-size, or identity check, pg_redis writes a pg_redis Pub/Sub route failure decision message to the PostgreSQL server log containing the failure reason, database OID, XID, and tuple position, while omitting tokens, channel names, and payloads.

8 - Limits

Size, memory, connection and output limits of the gateway and extension.

Gateway limits bound request frames, reply frames, and PostgreSQL wire buffers in the pgredis Go process. Extension limits bound temporary workspace allocations, shared-memory rings, and session tables inside PostgreSQL 18. Neither replaces OS or PostgreSQL cluster-wide memory limits (shared_buffers, work_mem, container cgroup limits).

Gateway buffer limits

ResourceFlagDefault limit
Single bulk argument-max-bulk-bytes512 MiB (536,870,912 bytes)
Total argument bytes in one request frame-max-frame-bytes1 GiB + 1 MiB (1,074,790,400 bytes)
Unauthenticated request header (AUTH pending)Built-in10 arguments, 16,384 bytes per bulk argument
Complete wire reply (including EXEC array)-max-reply-bytes1 GiB + 1 MiB (1,074,790,400 bytes)
Shared live input payload and bookkeeping-max-input-bytes2 GiB (2,147,483,648 bytes)
Shared live output payload and workspace-max-output-bytes2 GiB (2,147,483,648 bytes)
Shared PostgreSQL receive buffer budget-max-pg-read-bytes2 GiB (2,147,483,648 bytes)
Single PostgreSQL wire message body-max-pg-message-bytes1 GiB - 2 B (1,073,741,822 bytes)
  • Local pgx read-budget patch: During make build, scripts/prepare_pgx.py applies patches/pgx-v5.11.0-read-budget.patch to the Go driver so oversized PostgreSQL wire messages and shared -max-pg-read-bytes budgets are enforced before allocating full message bodies in memory.
  • Post-commit output rejection: A mutating SQL statement can commit inside PostgreSQL before the gateway rejects an oversized reply against -max-reply-bytes or -max-output-bytes. Callers that lose a connection or receive an output-budget error must treat the write outcome as UNKNOWN.

Extension workspace and session limits

ComponentDefault limitBehavior when exceeded
Per-backend C workspace and reply budget2 GiBRaises a PostgreSQL error and rolls back the statement or savepoint.
Shared preload memory budget (shared_preload_libraries)2 GiBBounds shared allocations across backends.
MONITOR shared-memory ring4 MiB / 4,096 entriesDrops stalled MONITOR cursors that fall behind the ring head.
Pub/Sub queue per client1 MiB / 1,024 framesMarks the session failed and closes the subscriber connection.
Total retained Pub/Sub payload64 MiB (4,096 sessions, 16,384 subscriptions)Rejects new publications/registrations and fails overflowing routes.

In SET ... GET and GETSET, the C extension releases the temporary replacement copy as soon as storage consumes it and before constructing the old-value reply, allowing full 512 MiB replacements within the default 2 GiB backend budget.

Mutation counter compaction

pg_redis tracks logical key mutations across backends using per-backend counter rows so concurrent writers do not contend on a single sequence row:

  • Once the counter table reaches 64 rows, the background maintenance worker compacts up to 64 unlocked rows per pass into a single retained row while preserving the exact SQL SUM.
  • Rows locked by active or prepared transactions (PREPARE TRANSACTION) are skipped, and any batch whose sum would overflow bigint is left untouched.
  • Compaction bounds the number of rows modified per maintenance pass; dead row versions are reclaimed by standard PostgreSQL VACUUM.

Verified 512 MiB capacity baseline

On Linux (3fc740ca5, 2026-10-15, 4 CPUs, 8 GiB RAM, no swap, PostgreSQL 18.6), the installed gateway and extension passed the full 512 MiB String suite across native and redis-acl authentication modes in both RESP2 and RESP3:

  • Verified byte-for-byte across 16 large write/replace requests (SET, SET ... GET, GETSET), 24 large replies, 32 direct SQL state observations, and clean PostgreSQL restart readbacks without OOM.
  • All tested 512 MiB keys had no TTL; large-value crash recovery with finite TTLs and multi-client concurrent 512 MiB streams require separate evaluation. See Status for current performance and test coverage.