1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-27 12:41:57 +03:00

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
This commit is contained in:
Robert Haas
2022-01-28 08:41:25 -05:00
parent 43f33dc018
commit d45099425e
7 changed files with 463 additions and 188 deletions

View File

@ -428,8 +428,11 @@ PostgreSQL documentation
</para>
<para>
When the tar format is used, the suffix <filename>.gz</filename> will
automatically be added to all tar filenames. Compression is not
available in plain format.
automatically be added to all tar filenames. When the plain format is
used, client-side compression may not be specified, but it is
still possible to request server-side compression. If this is done,
the server will compress the backup for transmission, and the
client will decompress and extract it.
</para>
</listitem>
</varlistentry>