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 1kKG38-0006yx-6Q for pgsql-hackers@arkaria.postgresql.org; Mon, 21 Sep 2020 07:15:46 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kKG35-0001Ij-4K for pgsql-hackers@arkaria.postgresql.org; Mon, 21 Sep 2020 07:15:43 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kKG34-0001IY-2p for pgsql-hackers@lists.postgresql.org; Mon, 21 Sep 2020 07:15:42 +0000 Received: from wforward3-smtp.messagingengine.com ([64.147.123.22]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kKG30-0001qX-8P for pgsql-hackers@postgresql.org; Mon, 21 Sep 2020 07:15:41 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailforward.west.internal (Postfix) with ESMTP id 1D97C4B6; Mon, 21 Sep 2020 03:15:35 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Mon, 21 Sep 2020 03:15:35 -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=VxuewDiqHlGqnIXR8sJhZ7ynodn3Cvl/NWtb8W/Tb 3E=; b=TQAt8HuF/J50FhAai/ddoYnKeULI5K/EQuUCCs/RPOooMcSGBKF/4rxdN sRek9NQB7WrUGG/S4/e/I8tb8+3ItLsrhKT/GGKDVAA1jSSBQ5t/UWXkr0O7gGOr XddpBdlKgbt0xMDRnyl7k6ezd+SCZDu2xp+4DJjT8KHXizOfOQs0rcEVisBD3fQP Qz119Jh5xv4QhAdN+oSDhICp31mzjnvdo1s77sO43aEmFO5PzlG1t/zy8o3vwQsY Teg1SppXkEztIEhUJcFgGGU+dbIK1EerPyJTDsc5h1OaIIaq+2gHluG77r4LxWZC hKzBeOO6k6m93bN/sfi6et4Mf/JwA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedruddugdduudejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepuffvfhfhohfkffgfgggjtgfgsehtjeertddtfeejnecuhfhrohhmpefrvght vghrucfgihhsvghnthhrrghuthcuoehpvghtvghrrdgvihhsvghnthhrrghuthesvdhnug hquhgrughrrghnthdrtghomheqnecuggftrfgrthhtvghrnheptdevgeehtdejvdevvdel jeeuveejjedtleelgfekleefieekjeelgfektdduuedvnecuffhomhgrihhnpedvnhguqh hurggurhgrnhhtrdgtohhmnecukfhppeekjedrudejjedrieegrdduledunecuvehluhhs thgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepphgvthgvrhdrvghish gvnhhtrhgruhhtsedvnhguqhhurggurhgrnhhtrdgtohhm X-ME-Proxy: Received: from april.pezone.net (p57b140bf.dip0.t-ipconnect.de [87.177.64.191]) by mail.messagingengine.com (Postfix) with ESMTPA id E98BE328005A; Mon, 21 Sep 2020 03:15:33 -0400 (EDT) Subject: Re: VACUUM PARALLEL option vs. max_parallel_maintenance_workers To: Amit Kapila References: <36aa8aea-61b7-eb3c-263b-648e0cb117b7@2ndquadrant.com> <5a8b1b58-30b6-cd9a-5a37-75f1da063429@2ndquadrant.com> <4de14d71-7fe9-fa12-121e-a41bd610998e@2ndquadrant.com> Cc: pgsql-hackers From: Peter Eisentraut Organization: 2ndQuadrant Message-ID: <2d2db0c5-88b1-deab-087f-3ab25ccc09cc@2ndquadrant.com> Date: Mon, 21 Sep 2020 09:16:47 +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-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