mirror of
https://github.com/postgres/postgres.git
synced 2025-07-28 23:42:10 +03:00
Add --parallel option to vacuumdb command.
Commit 40d964ec99
allowed vacuum command to leverage multiple CPUs by
invoking parallel workers to process indexes. This commit provides a
'--parallel' option to specify the parallel degree used by vacuum command.
Author: Masahiko Sawada, with few modifications by me
Reviewed-by: Mahendra Singh and Amit Kapila
Discussion: https://postgr.es/m/CAD21AoDTPMgzSkV4E3SFo1CH_x50bf5PqZFQf4jmqjk-C03BWg@mail.gmail.com
This commit is contained in:
@ -226,6 +226,24 @@ PostgreSQL documentation
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><option>-P <replaceable class="parameter">parallel_degree</replaceable></option></term>
|
||||
<term><option>--parallel=<replaceable class="parameter">parallel_degree</replaceable></option></term>
|
||||
<listitem>
|
||||
<para>
|
||||
Specify the parallel degree of <firstterm>parallel vacuum</firstterm>.
|
||||
This allows the vacuum to leverage multiple CPUs to process indexes.
|
||||
See <xref linkend="sql-vacuum"/>.
|
||||
</para>
|
||||
<note>
|
||||
<para>
|
||||
This option is only available for servers running
|
||||
<productname>PostgreSQL</productname> 13 and later.
|
||||
</para>
|
||||
</note>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><option>-q</option></term>
|
||||
<term><option>--quiet</option></term>
|
||||
|
Reference in New Issue
Block a user