pg_basebackup: Allow client-side LZ4 (de)compression.
Robert Haas <rhaas@postgresql.org>
pg_basebackup: Allow client-side LZ4 (de)compression. LZ4 compression can now be performed on the client using pg_basebackup -Ft --compress client-lz4, and LZ4 decompression of a backup compressed on the server can be performed on the client using pg_basebackup -Fp --compress server-lz4. Dipesh Pandit, reviewed and tested by Jeevan Ladhe and Tushar Ahuja, with a few corrections - and some documentation - by me. Discussion: http://postgr.es/m/CAN1g5_FeDmiA9D8wdG2W6Lkq5CpubxOAqTmd2et9hsinTJtsMQ@mail.gmail.com
Files
| Path | Change | +/− |
|---|---|---|
| doc/src/sgml/ref/pg_basebackup.sgml | modified | +15 −12 |
| src/bin/pg_basebackup/bbstreamer.h | modified | +3 −0 |
| src/bin/pg_basebackup/bbstreamer_lz4.c | added | +431 −0 |
| src/bin/pg_basebackup/Makefile | modified | +1 −0 |
| src/bin/pg_basebackup/pg_basebackup.c | modified | +38 −6 |
| src/bin/pg_verifybackup/t/009_extract.pl | modified | +6 −1 |
| src/bin/pg_verifybackup/t/010_client_untar.pl | added | +111 −0 |
| src/tools/msvc/Mkvcbuild.pm | modified | +1 −0 |
Documentation touched
Discussion
- refactoring basebackup.c 233 messages · 2020-05-08 → 2023-04-12