postgresql/src/backend/access
Michael Paquier 4035cd5d4e Add support for LZ4 with compression of full-page writes in WAL
The logic is implemented so as there can be a choice in the compression
used when building a WAL record, and an extra per-record bit is used to
track down if a block is compressed with PGLZ, LZ4 or nothing.

wal_compression, the existing parameter, is changed to an enum with
support for the following backward-compatible values:
- "off", the default, to not use compression.
- "pglz" or "on", to compress FPWs with PGLZ.
- "lz4", the new mode, to compress FPWs with LZ4.

Benchmarking has showed that LZ4 outclasses easily PGLZ.  ZSTD would be
also an interesting choice, but going just with LZ4 for now makes the
patch minimalistic as toast compression is already able to use LZ4, so
there is no need to worry about any build-related needs for this
implementation.

Author: Andrey Borodin, Justin Pryzby
Reviewed-by: Dilip Kumar, Michael Paquier
Discussion: https://postgr.es/m/3037310D-ECB7-4BF1-AF20-01C10BB33A33@yandex-team.ru
2021-06-29 11:17:55 +09:00
..
brin Fix an asssortment of typos in brin_minmax_multi.c and mcv.c 2021-06-10 20:13:44 +12:00
common Message style improvements 2021-06-28 08:36:44 +02:00
gin
gist Remove redundant variable pageSize in gistinitpage 2021-06-25 07:55:34 +02:00
hash
heap Pre branch pgindent / pgperltidy run 2021-06-28 11:05:54 -04:00
index Initial pgindent and pgperltidy run for v14. 2021-05-12 13:14:10 -04:00
nbtree Report sort phase progress in parallel btree build 2021-06-11 19:07:32 -04:00
rmgrdesc
spgist Re-order pg_attribute columns to eliminate some padding space. 2021-05-23 12:12:09 -04:00
table
tablesample
transam Add support for LZ4 with compression of full-page writes in WAL 2021-06-29 11:17:55 +09:00
Makefile