Support long distance matching for zstd compression
Tomas Vondra <tomas.vondra@postgresql.org>
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
Files
| Path | Change | +/− |
|---|---|---|
| doc/src/sgml/protocol.sgml | modified | +9 −1 |
| doc/src/sgml/ref/pg_basebackup.sgml | modified | +2 −2 |
| doc/src/sgml/ref/pg_dump.sgml | modified | +2 −0 |
| src/backend/backup/basebackup_zstd.c | modified | +12 −0 |
| src/bin/pg_basebackup/bbstreamer_zstd.c | modified | +13 −0 |
| src/bin/pg_basebackup/t/010_pg_basebackup.pl | modified | +8 −1 |
| src/bin/pg_dump/compress_zstd.c | modified | +5 −0 |
| src/bin/pg_dump/t/002_pg_dump.pl | modified | +2 −1 |
| src/bin/pg_verifybackup/t/008_untar.pl | modified | +8 −0 |
| src/bin/pg_verifybackup/t/010_client_untar.pl | modified | +8 −0 |
| src/common/compression.c | modified | +56 −1 |
| src/include/common/compression.h | modified | +2 −0 |
Documentation touched
Discussion
- refactoring basebackup.c 233 messages · 2020-05-08 → 2023-04-12
- zstd compression for pg_dump 36 messages · 2023-02-24 → 2023-04-07