Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tqqve-00BBbk-6R for pgsql-hackers@arkaria.postgresql.org; Sat, 08 Mar 2025 09:57:10 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1tqqvc-00E9UY-Gt for pgsql-hackers@arkaria.postgresql.org; Sat, 08 Mar 2025 09:57:08 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tqqvc-00E9UQ-00 for pgsql-hackers@lists.postgresql.org; Sat, 08 Mar 2025 09:57:08 +0000 Received: from fout-a3-smtp.messagingengine.com ([103.168.172.146]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1tqqvX-001f9k-2V for pgsql-hackers@lists.postgresql.org; Sat, 08 Mar 2025 09:57:07 +0000 Received: from phl-compute-12.internal (phl-compute-12.phl.internal [10.202.2.52]) by mailfout.phl.internal (Postfix) with ESMTP id B4719138282D; Sat, 8 Mar 2025 04:57:02 -0500 (EST) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-12.internal (MEProxy); Sat, 08 Mar 2025 04:57:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :reply-to:subject:subject:to:to:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm1; t=1741427822; x=1741514222; bh=B QRx9GpRbDS7CegtdyXhkXhRmiNL4yJZQ4g9pSjZRrE=; b=njSVMQgjRcIBq0sbx RHiCEmwjS6HpPODewChvMr64Xirs4MYKRsBV6XsOyg7LkPPGeICijGXT6DaVTfG6 uGph+iUCsdVirmjF9qGmSa4ReSRV8z6Kkr3+Qu3lIPvw+MbHJnKsQRFYDWkkwufJ KzIvNNtbsg/5/C/tIX2NPvj5/2V4GR6YP9Ut2C7lADib1jrb9uxc7FXqkWjQw+qC 225HcOUgK+Q4By2/GKged2TO86OCbkKUQmZkvuZsPt344TajBRVuilGiUSvFxl4b tQ+R+oUHmh2qTYsrSUpeG1Q4N8is7zCI7QLieLjmZe0vRVf+kp5HisVSAmQvJLHn j6PMw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgdduudefvdegucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggv pdfurfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpih gvnhhtshculddquddttddmnecujfgurhepfffhvfevuffkgggtugfgjgesthekredttddt jeenucfhrhhomheplmhlvhgrrhhoucfjvghrrhgvrhgruceorghlvhhhvghrrhgvsegrlh hvhhdrnhhoqdhiphdrohhrgheqnecuggftrfgrthhtvghrnhepvdehueffhefgueekueef heehgffhuefgfedukeejveduffegffekgeffffevgeehnecuffhomhgrihhnpegvnhhtvg hrphhrihhsvggusgdrtghomhenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhep mhgrihhlfhhrohhmpegrlhhvhhgvrhhrvgesrghlvhhhrdhnohdqihhprdhorhhgpdhnsg gprhgtphhtthhopeegpdhmohguvgepshhmthhpohhuthdprhgtphhtthhopehorhhlohhv mhhgsehgmhgrihhlrdgtohhmpdhrtghpthhtohepphhgshhqlhdqhhgrtghkvghrsheslh hishhtshdrphhoshhtghhrvghsqhhlrdhorhhgpdhrtghpthhtohepshdruggvrhgvvhih rghnkhhosehpohhsthhgrhgvshhprhhordhruhdprhgtphhtthhopegrkhhorhhothhkoh hvsehpohhsthhgrhgvshhqlhdrohhrgh X-ME-Proxy: Feedback-ID: ia2694551:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat, 8 Mar 2025 04:57:01 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alvh.no-ip.org; s=schmee; t=1741427815; bh=gK3OB4mqu4yJSFyUnZxvKztNbZZHEezhFe0Dg4+Y6Sw=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=lJhBzOwyd9uY4rXcPAPRmvmM6LAdD7a8xGTfnzoduwqzW5/q8acn/i5JdaaeOJt+V ubZt3A4k4St0atOfKGPZk8to8DR638HzpsQqdUzkqlkpAFUxD6B6dTbF7xCeQRGQfg hi0zn5ckLU9eFOV9CzSfHqmPrOz/j7RtJE+P/YQFRXRGwYsHZYjxxDfxDRTYggYdoJ YNgrW18/OCieeIam4Xn2mQ+ogZv8ZSre6S5Z/GREFdMN0DU1TVcbx3z9YhbFE1Du57 G/cKy2H2B/wAPCtgr49tLPV03ZVIvOVIhesrWGXaWGR9pBwmbf0ph2a/AwIxZ0TcMM 30DGz4rruLDHQ== Received: by schmee.alvh.no-ip.org (Postfix, from userid 1000) id 561EE8F; Sat, 8 Mar 2025 10:56:55 +0100 (CET) Date: Sat, 8 Mar 2025 10:56:55 +0100 From: =?utf-8?Q?=C3=81lvaro?= Herrera To: Alexander Korotkov Cc: pgsql-hackers@lists.postgresql.org, Maxim Orlov , Svetlana Derevyanko Subject: Re: pgsql: reindexdb: Add the index-level REINDEX with multiple jobs Message-ID: <202503080956.vjxmabdkatan@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <202503071820.j25zn3lo4hvn@alvherre.pgsql> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2025-Mar-07, Álvaro Herrera wrote: > I tested this, because of a refactoring suggestion [1] and I find that > it's rather completely broken. I think we need significantly more complex scheduling code if we want this to actually work, possibly even having to hack the ParallelSlot API some, so that we can inspect which tables have a running reindex and know not to schedule the next one on it. What we're doing now makes no sense. We should strike this out from the list of features of 17 and revert this commit. If we want this feature in 19, we need another go through the drawing board. (There's clearly not enough time to do it for 18.) -- Álvaro Herrera 48°01'N 7°57'E — https://www.EnterpriseDB.com/