mirror of
https://github.com/postgres/postgres.git
synced 2025-11-06 07:49:08 +03:00
Allow parallel zstd compression when taking a base backup.
libzstd allows transparent parallel compression just by setting an option when creating the compression context, so permit that for both client and server-side backup compression. To use this, use something like pg_basebackup --compress WHERE-zstd:workers=N where WHERE is "client" or "server" and N is an integer. When compression is performed on the server side, this will spawn threads inside the PostgreSQL backend. While there is almost no PostgreSQL server code which is thread-safe, the threads here are used internally by libzstd and touch only data structures controlled by libzstd. Patch by me, based in part on earlier work by Dipesh Pandit and Jeevan Ladhe. Reviewed by Justin Pryzby. Discussion: http://postgr.es/m/CA+Tgmobj6u-nWF-j=FemygUhobhryLxf9h-wJN7W-2rSsseHNA@mail.gmail.com
This commit is contained in:
@@ -424,8 +424,8 @@ PostgreSQL documentation
|
||||
integer, it specifies the compression level. Otherwise, it should be
|
||||
a comma-separated list of items, each of the form
|
||||
<literal>keyword</literal> or <literal>keyword=value</literal>.
|
||||
Currently, the only supported keyword is <literal>level</literal>,
|
||||
which sets the compression level.
|
||||
Currently, the supported keywords are <literal>level</literal>
|
||||
and <literal>workers</literal>.
|
||||
</para>
|
||||
<para>
|
||||
If no compression level is specified, the default compression level
|
||||
|
||||
Reference in New Issue
Block a user