Fix the usage of parallel and full options of vacuum command.
authorAmit Kapila <akapila@postgresql.org>
Thu, 16 Apr 2020 05:14:03 +0000 (10:44 +0530)
committerAmit Kapila <akapila@postgresql.org>
Thu, 16 Apr 2020 05:25:02 +0000 (10:55 +0530)
commit24d2d38b1eb86c0b410ad0f07f66566a83c6f05c
treea3d35fbbfc7f14e9b65b0f4a44f1acf6776809e8
parent542d7817f774ea9d94798eb95cdf250d4f1527d9
Fix the usage of parallel and full options of vacuum command.

Earlier we were inconsistent in allowing the usage of parallel and
full options.  Change it such that we disallow them only when they are
combined in a way that we don't support.

In passing, improve the comments in some of the existing tests of parallel
vacuum.

Reported-by: Tushar Ahuja
Author: Justin Pryzby, Amit Kapila
Reviewed-by: Sawada Masahiko, Michael Paquier, Mahendra Singh Thalor and
Amit Kapila
Discussion: https://postgr.es/m/58c8d171-e665-6fa3-a9d3-d9423b694dae%40enterprisedb.com
doc/src/sgml/ref/vacuum.sgml
src/backend/commands/vacuum.c
src/test/regress/expected/vacuum.out
src/test/regress/sql/vacuum.sql