Add --parallel option to vacuumdb command

Enterprise / PostgreSQL - Amit Kapila [postgresql.org] - 29 January 2020 05:38 UTC

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

47bc9ced0d Add --parallel option to vacuumdb command.
doc/src/sgml/ref/vacuumdb.sgml | 18 +++++++++++++++
src/bin/scripts/t/100_vacuumdb.pl | 13 ++++++++++-
src/bin/scripts/vacuumdb.c | 47 ++++++++++++++++++++++++++++++++++++++-
3 files changed, 76 insertions(+), 2 deletions(-)

Upstream: git.postgresql.org


  • Share