pg_lz4
pg_lz4 · LZ4 compression access method for a patched PostgreSQL development branch.
Overview
Usage
Sources:
pg_lz4 1.0 registers LZ4 as a column compression method. This historical implementation requires a development PostgreSQL tree with the linked custom-compression patch and the system liblz4 library; it is not an extension for an unmodified supported server.
Core Workflow
After building the patched server and installing the matching extension binary, create the extension and choose its compression method per column.
The acceleration option adjusts the LZ4 speed/compression tradeoff. Changing the column setting affects newly written values; it does not by itself rewrite existing rows.
Compatibility Boundary
The upstream README targets a 2019 development patch rather than the later core compression-method API. Do not assume compatibility with stock PostgreSQL or with built-in LZ4 TOAST support. Use the exact patched server ABI, test backup and restore portability, and plan a data rewrite before moving compressed values to a server that lacks this method.