pg_basebackup: Allow client-side LZ4 (de)compression.
authorRobert Haas <rhaas@postgresql.org>
Fri, 11 Feb 2022 14:41:42 +0000 (09:41 -0500)
committerRobert Haas <rhaas@postgresql.org>
Fri, 11 Feb 2022 14:41:42 +0000 (09:41 -0500)
commit751b8d23b788580bbff7463e3959f9a92a95b28a
tree075dd16c77f013cfed9d9b4e8e5041b2aae06398
parentdab298471ff2f91f33bc25bfb73e435d3ab02148
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
doc/src/sgml/ref/pg_basebackup.sgml
src/bin/pg_basebackup/Makefile
src/bin/pg_basebackup/bbstreamer.h
src/bin/pg_basebackup/bbstreamer_lz4.c [new file with mode: 0644]
src/bin/pg_basebackup/pg_basebackup.c
src/bin/pg_verifybackup/t/009_extract.pl
src/bin/pg_verifybackup/t/010_client_untar.pl [new file with mode: 0644]
src/tools/msvc/Mkvcbuild.pm