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 1ukjhg-006NYS-0k for pgsql-hackers@arkaria.postgresql.org; Sat, 09 Aug 2025 13:33:44 +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 1ukjhd-003YqB-Fo for pgsql-hackers@arkaria.postgresql.org; Sat, 09 Aug 2025 13:33:41 +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 1ukjhc-003Yq2-NR for pgsql-hackers@lists.postgresql.org; Sat, 09 Aug 2025 13:33:41 +0000 Received: from fout-b7-smtp.messagingengine.com ([202.12.124.150]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1ukjhY-001cZl-3D for pgsql-hackers@lists.postgresql.org; Sat, 09 Aug 2025 13:33:40 +0000 Received: from phl-compute-08.internal (phl-compute-08.internal [10.202.2.48]) by mailfout.stl.internal (Postfix) with ESMTP id 987BF1D00059; Sat, 9 Aug 2025 09:33:33 -0400 (EDT) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-08.internal (MEProxy); Sat, 09 Aug 2025 09:33:33 -0400 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=fm3; t=1754746413; x=1754832813; bh=z S78RvAJaou6JRjnWKIbPpwgCNOCk9T37qVtK/sut7k=; b=Pw19dMAplPhCjRgpY 0tHzQhXsaT2YUeSoOf0COva6xtv+ZQrU7hLz//zpegHg9fncE8dI5eK3WkJH0Q6O N7cabnz51xjctGlVarV/gSWHe4Cq8UsU7xr/4+iuWH57NOhQ2hvMKK4HCA8Lrvng dGpDlwQ2GZqs6oeKwkYdYlsy16GPttntbor/zycteBEnOxFcJISqbhvmd3VXFAdC WKCsTnWF1ctmVEk0ORi7Aqy5uv6ZelzaTNZF0tkA0yRtgcn46PWs348feakJp8Im Hxt4uHBDPkGGvVyROiyqaqnwsZt2C75LIW7lV5tUHPgs0wkz3ax2zz1QMYNd7ri1 gZqhg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdefgdduvdeikedvucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujf gurhepfffhvfevuffkgggtugfgjgesthekredttddtjeenucfhrhhomheptehlvhgrrhho ucfjvghrrhgvrhgruceorghlvhhhvghrrhgvsegrlhhvhhdrnhhoqdhiphdrohhrgheqne cuggftrfgrthhtvghrnhepkedthfekveduuefgueelteekgfejgeekueduudeuveeuvddu fffggfetiefhvdefnecuffhomhgrihhnpehpohhsthhgrhgvshhqlhdrohhrghdpvghnth gvrhhprhhishgvuggsrdgtohhmnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghm pehmrghilhhfrhhomheprghlvhhhvghrrhgvsegrlhhvhhdrnhhoqdhiphdrohhrghdpnh gspghrtghpthhtohephedpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtoheprghhsegt higsvghrthgvtgdrrghtpdhrtghpthhtohepmhgrshgrohdrfhhujhhiihesghhmrghilh drtghomhdprhgtphhtthhopehmihhhrghilhhnihhkrghlrgihvghusehgmhgrihhlrdgt ohhmpdhrtghpthhtohepphhgshhqlhdqhhgrtghkvghrsheslhhishhtshdrphhoshhtgh hrvghsqhhlrdhorhhgpdhrtghpthhtoheprhhosgesgiiiihhllhgrrdhnvght X-ME-Proxy: Feedback-ID: ia2694551:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat, 9 Aug 2025 09:33:32 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alvh.no-ip.org; s=schmee; t=1754746411; bh=uO9Ax1TuldZq2fdpOvTXJM4eQv4+k+tJGfws5b9Qi18=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=DEfGAB/wcmaKPrUWbtCxFsbMKN36JSLngMwgLmMmnw1V4zM2uj7dDF5A/UhBcc+Ik 9Xz4MJ1m2VU8z0qjkpAXrAFVeiP9UBytp0adIPRK+DoK62zA/JmpCrCCmXiaS7fe/h P1Iq07XOqf4uPOQbb1wQuoeODAUeO7T17wb73BfT3qI3NzNO94LMgtbu22V6+dwHOO X+XkwUEV3MuVDrn/Komeif6qBXdmp03WZWmFcM5ixjuqallYQTfgNrtmyxYERUWuxQ DrI1EGx1l0Ji+gUf9TH7jUyHT1vQP5WdwfgGus1PThAsUJhfI2icJgEI6V8UH6qQNA gjbKOIAZVlr3A== Received: by schmee.kurilemu.internal (Postfix, from userid 1000) id 2CDC090; Sat, 9 Aug 2025 15:33:31 +0200 (CEST) Date: Sat, 9 Aug 2025 15:33:31 +0200 From: Alvaro Herrera To: Mihail Nikalayeu Cc: Fujii Masao , Robert Treat , Pg Hackers , Antonin Houska Subject: Re: Adding REPACK [concurrently] Message-ID: <202508091333.qvgvo7ikuezm@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2025-Aug-09, Mihail Nikalayeu wrote: > Hello! > > One more thing - I think build_new_indexes and > index_concurrently_create_copy are very close in semantics, so it > might be a good idea to refactor them a bit. > > I’m still concerned about MVCC-related issues. For multiple > applications, this is a dealbreaker, because in some cases correctness > is a higher priority than availability. Please note that Antonin already implemented this. See his patches here: https://www.postgresql.org/message-id/77690.1725610115%40antos I proposed to leave this part out initially, which is why it hasn't been reposted. We can review and discuss after the initial patches are in. Because having an MVCC-safe mode has drawbacks, IMO we should make it optional. But you're welcome to review that part specifically if you're so inclined, and offer feedback on it. (I suggest to rewind back your checked-out tree to branch master at the time that patch was posted, for easy application. We can deal with a rebase later.) -- Álvaro Herrera 48°01'N 7°57'E — https://www.EnterpriseDB.com/ Officer Krupke, what are we to do? Gee, officer Krupke, Krup you! (West Side Story, "Gee, Officer Krupke")