pgsql: pg_basebackup: Allow client-side LZ4 (de)compression.

From: Robert Haas <rhaas(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: pg_basebackup: Allow client-side LZ4 (de)compression.
Date: 2022-02-11 14:49:40
Message-ID: E1nIXEy-0005ck-IR@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/751b8d23b788580bbff7463e3959f9a92a95b28a

Modified Files
--------------
doc/src/sgml/ref/pg_basebackup.sgml | 27 +-
src/bin/pg_basebackup/Makefile | 1 +
src/bin/pg_basebackup/bbstreamer.h | 3 +
src/bin/pg_basebackup/bbstreamer_lz4.c | 431 ++++++++++++++++++++++++++
src/bin/pg_basebackup/pg_basebackup.c | 44 ++-
src/bin/pg_verifybackup/t/009_extract.pl | 7 +-
src/bin/pg_verifybackup/t/010_client_untar.pl | 111 +++++++
src/tools/msvc/Mkvcbuild.pm | 1 +
8 files changed, 606 insertions(+), 19 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2022-02-11 14:59:55 Re: pgsql: Add TAP test to automate the equivalent of check_guc
Previous Message Robert Haas 2022-02-11 13:54:36 pgsql: Add suport for server-side LZ4 base backup compression.