Support long distance matching for zstd compression
authorTomas Vondra <[email protected]>
Thu, 6 Apr 2023 15:18:38 +0000 (17:18 +0200)
committerTomas Vondra <[email protected]>
Thu, 6 Apr 2023 15:18:42 +0000 (17:18 +0200)
commit2820adf7755d2a377546d5b55f5b1a4a39889336
tree334f61a64955c187476ca65d9732f736a2eeee65
parent983ec23007bd83a649af9bc823f13feb0da27e0e
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[email protected]
Discussion: https://postgr.es/m/20220327205020[email protected]
12 files changed:
doc/src/sgml/protocol.sgml
doc/src/sgml/ref/pg_basebackup.sgml
doc/src/sgml/ref/pg_dump.sgml
src/backend/backup/basebackup_zstd.c
src/bin/pg_basebackup/bbstreamer_zstd.c
src/bin/pg_basebackup/t/010_pg_basebackup.pl
src/bin/pg_dump/compress_zstd.c
src/bin/pg_dump/t/002_pg_dump.pl
src/bin/pg_verifybackup/t/008_untar.pl
src/bin/pg_verifybackup/t/010_client_untar.pl
src/common/compression.c
src/include/common/compression.h