Skip to content

pg_cache_journal

Optional WAL-logged write-behind journal for the pg_cache prototype.

pg_flaro · Optional WAL-logged write-behind journal for the pg_cache prototype.

Overview

IDExtensionPackageVersionCategoryLicenseLanguage
102319pg_cache_journalpg_flaro0.1.0FEATSQL

PostgreSQL · 17

Relationships
Requirespg_cache

Usage

Sources:

pg_cache_journal 0.1.0 adds the optional WAL-logged journal used by Flaro’s write-behind persistence prototype.

Core Workflow

Use artifacts built with the journal-prototype feature, then create both extensions in the cache database. The parent library needs preload and restart. Batches enter cache_journal.segment0 and cache_journal.segment1; a separate worker materializes them into cache_journal.entries.

pg_cache.journal = on
CREATE EXTENSION pg_cache;
CREATE EXTENSION pg_cache_journal;
SELECT * FROM cache_journal.state;

Operational Boundaries

Requires PostgreSQL 17 and pg_cache. Journal commit and materialization are different stages; reading the materialized table alone can lag committed journal writes. RESP acknowledgments remain asynchronous with respect to persistence. Capacity is bounded and sustained write pressure can exhaust it; do not treat this experimental mode as synchronous Redis durability.

Table reader