Skip to content

Install

Install the gateway and extension from a package, and what to check afterwards.

pgredis is currently at release candidate v0.1.0-rc1 (product version 0.1.0, extension schema 0.54, ABI 3, commit 11411411d72ab45456904cc602cefbb13b68ff25, 2026-11-08). No public download URL or apt/rpm repository is published yet. Install either from a local Linux development archive built for PostgreSQL 18.6 or by building from source.

Candidate packages

The v0.1.0-rc1 development archives target Debian 13 (trixie) and PostgreSQL 18.6 from PGDG:

ArchivePlatformSize (bytes)SHA-256
pgredis-0.1.0-pg18.6-debian13-amd64.tar.gzLinux x86_64, glibc 2.419,321,730d72fdcb4f40d429e5b650d0671105c923db7ceb4425b50f68d45eea0d61e2ba8
pgredis-0.1.0-pg18.6-debian13-arm64.tar.gzLinux aarch64, glibc 2.418,574,4194dcc546ef4c0562eb0b69500c0bbb43f664c3b955259ccde92900ef52e269cd7

Each archive contains these members at its top level:

  • bin/pgredis — the Redis wire gateway executable
  • lib/pg_redis.so — the PostgreSQL 18 C extension library (ABI 3)
  • share/extension/pg_redis.control and share/extension/pg_redis--*.sql — the base script (0.1) and upgrade scripts through 0.54
  • licenses/ — project, Redis and dependency licence files
  • install.py and manifest.json — the installer and the file list with SHA-256, size and mode of every member

Install files

  1. Verify the archive checksum

    Check the archive hash before unpacking:

    pgredis_archive=pgredis-0.1.0-pg18.6-debian13-amd64.tar.gz
    sha256sum "$pgredis_archive"
    mkdir pgredis-package
    tar -xzf "$pgredis_archive" -C pgredis-package
  2. Run the installer

    install.py checks that the host is Debian 13 on x86_64 or aarch64, that pg_config --version reports PostgreSQL 18.6, and that every member matches manifest.json. Then it installs the binary and extension files:

    sudo python3 -E pgredis-package/install.py \
      "$PWD/$pgredis_archive" \
      --pg-config /usr/lib/postgresql/18/bin/pg_config \
      --gateway-path /usr/local/bin/pgredis

    The installer copies pgredis into /usr/local/bin/pgredis, pg_redis.so into pg_config --pkglibdir, and the control and SQL files into pg_config --sharedir/extension.

  3. Create the extension in PostgreSQL

    Connect to the target PostgreSQL 18 database as a superuser and create the extension:

    CREATE EXTENSION pg_redis;
    SELECT extversion FROM pg_extension WHERE extname = 'pg_redis';
    SELECT redis._abi_version();

    Confirm that extversion returns 0.54 and redis._abi_version() returns 3.

Start and verify

Start the gateway against the target database. Mimus assigns port 6379 to Redis (pgredis defaults to -listen 127.0.0.1:56379 and -pg postgres://127.0.0.1:55432/pgredis when flags are omitted):

/usr/local/bin/pgredis \
  -listen 127.0.0.1:6379 \
  -default-user pgredis_app \
  -pg "postgres://127.0.0.1:5432/postgres?sslmode=disable"

Run a post-installation check across both the Redis port and SQL:

redis-cli -h 127.0.0.1 -p 6379 --user pgredis_app --askpass PING
redis-cli -h 127.0.0.1 -p 6379 --user pgredis_app --askpass SET install:check ready
redis-cli -h 127.0.0.1 -p 6379 --user pgredis_app --askpass GET install:check
psql -h 127.0.0.1 -p 5432 -U postgres -d postgres \
  -c "SELECT convert_from(redis.command(ARRAY['GET', 'install:check']), 'UTF8');"

redis-cli returns ready and psql returns the RESP2 bulk string $5\r\nready\r\n. To configure least-privilege database roles or Redis ACL rules before exposing the listener to applications, see Authentication and permissions.

Scan to open this page
https://mimus.pgsty.com/docs/redis/operations/install/

Table reader