pgsql: Add support for zstd base backup compression.

From: Robert Haas <rhaas(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Add support for zstd base backup compression.
Date: 2022-03-08 14:59:34
Message-ID: E1nRbJG-001UYy-9l@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/7cf085f077df8dd9b80cf1f5964b5b8c142be496

Modified Files
--------------
doc/src/sgml/protocol.sgml | 7 +-
doc/src/sgml/ref/pg_basebackup.sgml | 41 ++--
src/backend/replication/Makefile | 1 +
src/backend/replication/basebackup.c | 7 +-
src/backend/replication/basebackup_zstd.c | 299 +++++++++++++++++++++++
src/bin/pg_basebackup/Makefile | 1 +
src/bin/pg_basebackup/bbstreamer.h | 3 +
src/bin/pg_basebackup/bbstreamer_zstd.c | 338 ++++++++++++++++++++++++++
src/bin/pg_basebackup/pg_basebackup.c | 49 +++-
src/bin/pg_basebackup/pg_receivewal.c | 4 +
src/bin/pg_basebackup/walmethods.h | 1 +
src/bin/pg_verifybackup/Makefile | 1 +
src/bin/pg_verifybackup/t/008_untar.pl | 9 +
src/bin/pg_verifybackup/t/009_extract.pl | 5 +
src/bin/pg_verifybackup/t/010_client_untar.pl | 8 +
src/include/replication/basebackup_sink.h | 1 +
src/tools/msvc/Mkvcbuild.pm | 1 +
17 files changed, 750 insertions(+), 26 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Robert Haas 2022-03-08 15:14:06 pgsql: Fix LZ4 tests for remaining buffer space.
Previous Message Michael Paquier 2022-03-08 05:30:24 pgsql: Improve comment in execReplication.c