Add suport for server-side LZ4 base backup compression.
Robert Haas <rhaas@postgresql.org>
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
Files
| Path | Change | +/− |
|---|---|---|
| doc/src/sgml/protocol.sgml | modified | +4 −3 |
| doc/src/sgml/ref/pg_basebackup.sgml | modified | +14 −10 |
| src/backend/replication/basebackup.c | modified | +6 −1 |
| src/backend/replication/basebackup_lz4.c | added | +298 −0 |
| src/backend/replication/Makefile | modified | +1 −0 |
| src/bin/pg_basebackup/pg_basebackup.c | modified | +15 −3 |
| src/bin/pg_verifybackup/Makefile | modified | +1 −0 |
| src/bin/pg_verifybackup/t/008_untar.pl | modified | +9 −1 |
| src/include/replication/basebackup_sink.h | modified | +1 −0 |
Documentation touched
Discussion
- refactoring basebackup.c 233 messages · 2020-05-08 → 2023-04-12