pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Robert Haas <rhaas@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Add support for zstd base backup compression.
Date: Tue, 08 Mar 2022 14:59:34 +0000
Message-ID: <E1nRbJG-001UYy-9l@gemulon.postgresql.org> (raw)

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(-)



Message-ID: <E1nRbJG-001UYy-9l@gemulon.postgresql.org>
Permalink:  ../E1nRbJG-001UYy-9l@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1nRbJG-001UYy-9l@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: rhaas@postgresql.org
  Subject: Re: pgsql: Add support for zstd base backup compression.
  In-Reply-To: <E1nRbJG-001UYy-9l@gemulon.postgresql.org>
  References: <E1nRbJG-001UYy-9l@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox