Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kJaZH-0001K3-Au for pgsql-hackers@arkaria.postgresql.org; Sat, 19 Sep 2020 10:58:11 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kJaZE-0002eT-87 for pgsql-hackers@arkaria.postgresql.org; Sat, 19 Sep 2020 10:58:08 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kJaZD-0002eM-8b for pgsql-hackers@lists.postgresql.org; Sat, 19 Sep 2020 10:58:08 +0000 Received: from wforward1-smtp.messagingengine.com ([64.147.123.30]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kJaZ6-0008Nn-31 for pgsql-hackers@postgresql.org; Sat, 19 Sep 2020 10:58:05 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailforward.west.internal (Postfix) with ESMTP id 3F801700; Sat, 19 Sep 2020 06:57:58 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Sat, 19 Sep 2020 06:57:58 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; bh=sBB+OYKXwIFPrKtm1GL+DkfKuR4EOhc7Gf3LQw16m aY=; b=AtwU4sqKG6yjxkVPVNbctSd9JU3mDaeQJ4Aj9G5h/nSAsJ4f0j2d1Ncc8 hUuWWO0dnVr15tWjg2twFxgIb+s2vZCHoaVYBJAa7aUH8IeGL3J2+uxH834GfwiT 2TqNb+AvbGiQXeLFQXdhpD65AfPbbJGId+tA+WUyXFHLuVkUwaE+saZha8cIAGS7 mGb7M1t5dcVgSQclUM5eZkTShjUkCVuJLbUGFJekqX0AnG7DAD93dE8vjeieyQPp lkb2ABueruTPNLrA1diDqGDGe1f71A2xLDsGi0HtydS1Z+THA2828jKoVrBfofvn ejx+Vf+axEKB/Nw8hHs9Qj6/RNFKw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrtdekgdefhecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefuvfhfhfhokffffgggjggtgfesthejredttdefjeenucfhrhhomheprfgvthgv rhcugfhishgvnhhtrhgruhhtuceophgvthgvrhdrvghishgvnhhtrhgruhhtsedvnhguqh hurggurhgrnhhtrdgtohhmqeenucggtffrrghtthgvrhhnpedtveeghedtjedvvedvleej ueevjeejtdellefgkeelfeeikeejlefgkedtudeuvdenucffohhmrghinhepvdhnughquh grughrrghnthdrtghomhenucfkphepkeejrddujeejrdejiedrieelnecuvehluhhsthgv rhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepphgvthgvrhdrvghishgvnh htrhgruhhtsedvnhguqhhurggurhgrnhhtrdgtohhm X-ME-Proxy: Received: from april.pezone.net (p57b14c45.dip0.t-ipconnect.de [87.177.76.69]) by mail.messagingengine.com (Postfix) with ESMTPA id 0FC1F3280059; Sat, 19 Sep 2020 06:57:56 -0400 (EDT) Subject: Re: VACUUM PARALLEL option vs. max_parallel_maintenance_workers To: Amit Kapila References: <36aa8aea-61b7-eb3c-263b-648e0cb117b7@2ndquadrant.com> Cc: pgsql-hackers From: Peter Eisentraut Organization: 2ndQuadrant Message-ID: <5a8b1b58-30b6-cd9a-5a37-75f1da063429@2ndquadrant.com> Date: Sat, 19 Sep 2020 12:59:02 +0200 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2020-09-19 11:37, Amit Kapila wrote: > I think we can change the documentation for parallel option to explain > it better. How about: "Perform index vacuum and index cleanup phases > of VACUUM in parallel using integer background workers (for the > details of each vacuum phase, please refer to Table 27.37). The number > of workers is determined based on the number of indexes on the > relation that support parallel vacuum operation which is limited by > number of workers specified with PARALLEL option if any which is > further limited by max_parallel_maintenance_workers." instead of what > is currently there? I think the implemented behavior is wrong. The VACUUM PARALLEL option should override the max_parallel_maintenance_worker setting. Otherwise, what's the point of the command option? -- Peter Eisentraut http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services