Add --parallel option to vacuumdb command.
authorAmit Kapila <akapila@postgresql.org>
Wed, 29 Jan 2020 05:38:50 +0000 (11:08 +0530)
committerAmit Kapila <akapila@postgresql.org>
Wed, 29 Jan 2020 05:38:50 +0000 (11:08 +0530)
commit47bc9ced0d0e96523e2c639c7066c9aede189ed7
treea7753690cf761e3866c6378a66e0127c740bbe63
parent01d9676a53af075feb42d2f83ddb8c61186812fc
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
doc/src/sgml/ref/vacuumdb.sgml
src/bin/scripts/t/100_vacuumdb.pl
src/bin/scripts/vacuumdb.c