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: Allow server-side compression to be used with -Fp.
Date: Fri, 28 Jan 2022 13:41:39 +0000
Message-ID: <E1nDRVT-00024b-V2@gemulon.postgresql.org> (raw)

Allow server-side compression to be used with -Fp.

If you have a low-bandwidth connection between the client and the
server, it's reasonable to want to compress on the server side but
then decompress and extract the backup on the client side. This
commit allows you do to do just that.

Dipesh Pandit, with minor and mostly cosmetic changes by me.

Discussion: http://postgr.es/m/CAN1g5_HiSh8ajUMd4ePtGyCXo89iKZTzaNyzP_qv1eJbi4YHXA@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/d45099425eb19e420433c9d81d354fe585f4dbd6

Modified Files
--------------
doc/src/sgml/ref/pg_basebackup.sgml      |   7 +-
src/bin/pg_basebackup/Makefile           |   1 +
src/bin/pg_basebackup/bbstreamer.h       |   1 +
src/bin/pg_basebackup/bbstreamer_file.c  | 182 ---------------
src/bin/pg_basebackup/bbstreamer_gzip.c  | 380 +++++++++++++++++++++++++++++++
src/bin/pg_basebackup/pg_basebackup.c    |  19 +-
src/bin/pg_verifybackup/t/009_extract.pl |  61 +++++
7 files changed, 463 insertions(+), 188 deletions(-)



Message-ID: <E1nDRVT-00024b-V2@gemulon.postgresql.org>
Permalink:  ../E1nDRVT-00024b-V2@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1nDRVT-00024b-V2@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: Allow server-side compression to be used with -Fp.
  In-Reply-To: <E1nDRVT-00024b-V2@gemulon.postgresql.org>
  References: <E1nDRVT-00024b-V2@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