Allow server-side compression to be used with -Fp.
authorRobert Haas <rhaas@postgresql.org>
Fri, 28 Jan 2022 13:41:25 +0000 (08:41 -0500)
committerRobert Haas <rhaas@postgresql.org>
Fri, 28 Jan 2022 13:41:25 +0000 (08:41 -0500)
commitd45099425eb19e420433c9d81d354fe585f4dbd6
treec89a27a8d97269b172433071b18b93dcda6b991e
parent43f33dc018a4b77ced78a0a6df8ed5d450cfe5f4
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
doc/src/sgml/ref/pg_basebackup.sgml
src/bin/pg_basebackup/Makefile
src/bin/pg_basebackup/bbstreamer.h
src/bin/pg_basebackup/bbstreamer_file.c
src/bin/pg_basebackup/bbstreamer_gzip.c [new file with mode: 0644]
src/bin/pg_basebackup/pg_basebackup.c
src/bin/pg_verifybackup/t/009_extract.pl [new file with mode: 0644]