Add support for zstd base backup compression.
authorRobert Haas <rhaas@postgresql.org>
Mon, 7 Mar 2022 20:08:45 +0000 (15:08 -0500)
committerRobert Haas <rhaas@postgresql.org>
Tue, 8 Mar 2022 14:52:43 +0000 (09:52 -0500)
commit7cf085f077df8dd9b80cf1f5964b5b8c142be496
treef756ee9b079085ef5ab848c4daf08f02673e9dd1
parentc28839c8326155f25161ed42f23890c997e0b4a4
Add support for zstd base backup compression.

Both client-side compression and server-side compression are now
supported for zstd. In addition, a backup compressed by the server
using zstd can now be decompressed by the client in order to
accommodate the use of -Fp.

Jeevan Ladhe, with some edits by me.

Discussion: http://postgr.es/m/CA+Tgmobyzfbz=gyze2_LL1ZumZunmaEKbHQxjrFkOR7APZGu-g@mail.gmail.com
17 files changed:
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_zstd.c [new file with mode: 0644]
src/bin/pg_basebackup/Makefile
src/bin/pg_basebackup/bbstreamer.h
src/bin/pg_basebackup/bbstreamer_zstd.c [new file with mode: 0644]
src/bin/pg_basebackup/pg_basebackup.c
src/bin/pg_basebackup/pg_receivewal.c
src/bin/pg_basebackup/walmethods.h
src/bin/pg_verifybackup/Makefile
src/bin/pg_verifybackup/t/008_untar.pl
src/bin/pg_verifybackup/t/009_extract.pl
src/bin/pg_verifybackup/t/010_client_untar.pl
src/include/replication/basebackup_sink.h
src/tools/msvc/Mkvcbuild.pm