pgsql: Support long distance matching for zstd compression - Mailing list pgsql-committers

From Tomas Vondra
Subject pgsql: Support long distance matching for zstd compression
Date
Msg-id E1pkRWw-001h4Y-IA@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Support long distance matching for zstd compression

zstd compression supports a special mode for finding matched in distant
past, which may result in better compression ratio, at the expense of
using more memory (the window size is 128MB).

To enable this optional mode, use the "long" keyword when specifying the
compression method (--compress=zstd:long).

Author: Justin Pryzby
Reviewed-by: Tomas Vondra, Jacob Champion
Discussion: https://postgr.es/m/20230224191840.GD1653@telsasoft.com
Discussion: https://postgr.es/m/20220327205020.GM28503@telsasoft.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/2820adf7755d2a377546d5b55f5b1a4a39889336

Modified Files
--------------
doc/src/sgml/protocol.sgml                    | 10 ++++-
doc/src/sgml/ref/pg_basebackup.sgml           |  4 +-
doc/src/sgml/ref/pg_dump.sgml                 |  2 +
src/backend/backup/basebackup_zstd.c          | 12 ++++++
src/bin/pg_basebackup/bbstreamer_zstd.c       | 13 ++++++
src/bin/pg_basebackup/t/010_pg_basebackup.pl  |  9 ++++-
src/bin/pg_dump/compress_zstd.c               |  5 +++
src/bin/pg_dump/t/002_pg_dump.pl              |  3 +-
src/bin/pg_verifybackup/t/008_untar.pl        |  8 ++++
src/bin/pg_verifybackup/t/010_client_untar.pl |  8 ++++
src/common/compression.c                      | 57 ++++++++++++++++++++++++++-
src/include/common/compression.h              |  2 +
12 files changed, 127 insertions(+), 6 deletions(-)


pgsql-committers by date:

Previous
From: Etsuro Fujita
Date:
Subject: pgsql: postgres_fdw: Add support for parallel abort.
Next
From: Tom Lane
Date:
Subject: pgsql: psql: add an optional execution-count limit to \watch.