Skip to content

pg_redis_async 0.0.2

Choose a tag to compare

@DeoLeung DeoLeung released this 30 Nov 06:00
a3a08bf

Early beta · for development, testing and evaluation. The project is unsuitable for production use.

pg_redis_async 0.0.2 lets a PostgreSQL transaction mark a cache key dirty. Repeated changes to the same key coalesce while a native sender projects committed data to the configured Redis targets. Applications that need proof of an individual write can continue to enqueue an exact (target, seq) receipt and wait for it from another connection after commit.

  • Configure each Redis target’s connection pool, timeouts and in-flight batch limit. Independent targets can continue delivering during an outage.
  • Set retention for applied and retired receipts and enforce storage limits on queued work and receipt history. Monitoring exposes pool use, delivery latency, retries and cleanup.
  • Schema ABI 2 includes a direct upgrade from 0.0.1 that preserves pending and dead work. Pin each registered projector’s search_path, pause delivery, wait for sealing, stop the sender and remove the database from the allowlist. With PostgreSQL stopped, install the matching binary. After restart, run ALTER EXTENSION pg_redis_async UPDATE TO '0.0.2' in each database that uses the extension. Upgrade and lifecycle controls

Choose the DEB or binary tar.gz matching your server’s PostgreSQL major and CPU architecture. The packages support PostgreSQL 15.10+, 16.6+, 17.2+, 18.7+ and 19.x on Linux amd64 and arm64 with glibc 2.39+. Each combination has a BUILD.json with build provenance and a SHA256SUMS file for verification.

All ten packages were built from the merged commit a3a08bfbd256a5aaa2e6bcb192139658673d0686 in local Ubuntu 24.04 containers, with Rust 1.99.1 and pgrx 0.20.1. arm64 ran natively and amd64 ran under Rosetta emulation.

Each build passed 21 Rust tests and strict Clippy. On each extracted DEB, 272 fresh-install pgTAP assertions and 37 assertions after an offline upgrade from the published 0.0.1 binary passed. PostgreSQL 18 also passed the full two-Redis service suite on both architectures, including crash recovery and standby promotion. The amd64 suite used both Redis 8.12 and 6.0. The merge tree previously passed all ten jobs on native GitHub runners. Native CI

The independent-key throughput and admission-latency targets remain open. Workload measurements and conditions are in PR #2.