Re: VACUUM PARALLEL option vs. max_parallel_maintenance_workers

Peter Eisentraut <peter.eisentraut@2ndquadrant.com>

From: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
To: Amit Kapila <amit.kapila16@gmail.com>
Cc: pgsql-hackers <pgsql-hackers@postgresql.org>
Date: 2020-09-21T07:16:47Z
Lists: pgsql-hackers
On 2020-09-21 05:48, Amit Kapila wrote:
> What according to you should be the behavior here and how will it be
> better than current?

I think if I write VACUUM (PARALLEL 5), it should use up to 5 workers 
(up to the number of indexes), even if max_parallel_maintenance_workers 
is 2.

-- 
Peter Eisentraut              http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services



Commits

  1. Change the docs for PARALLEL option of Vacuum.