Add suport for server-side LZ4 base backup compression.
authorRobert Haas <rhaas@postgresql.org>
Fri, 11 Feb 2022 13:29:38 +0000 (08:29 -0500)
committerRobert Haas <rhaas@postgresql.org>
Fri, 11 Feb 2022 13:29:38 +0000 (08:29 -0500)
commitdab298471ff2f91f33bc25bfb73e435d3ab02148
tree4e6e304cb5cff245abb26ddbaf22c1532a3b61ad
parenta745b936507f57334e2c0108dcea5965848e3e35
Add suport for server-side LZ4 base backup compression.

LZ4 compression can be a lot faster than gzip compression, so users
may prefer it even if the compression ratio is not as good. We will
want pg_basebackup to support LZ4 compression and decompression on the
client side as well, and there is a pending patch for that, but it's
by a different author, so I am committing this part separately for
that reason.

Jeevan Ladhe, reviewed by Tushar Ahuja and by me.

Discussion: http://postgr.es/m/CANm22Cg9cArXEaYgHVZhCnzPLfqXCZLAzjwTq7Fc0quXRPfbxA@mail.gmail.com
doc/src/sgml/protocol.sgml
doc/src/sgml/ref/pg_basebackup.sgml
src/backend/replication/Makefile
src/backend/replication/basebackup.c
src/backend/replication/basebackup_lz4.c [new file with mode: 0644]
src/bin/pg_basebackup/pg_basebackup.c
src/bin/pg_verifybackup/Makefile
src/bin/pg_verifybackup/t/008_untar.pl
src/include/replication/basebackup_sink.h