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.96) (envelope-from ) id 1w7txp-0000Zy-2g for pgsql-hackers@arkaria.postgresql.org; Wed, 01 Apr 2026 11:42:26 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1w7txn-00HA0k-2s for pgsql-hackers@arkaria.postgresql.org; Wed, 01 Apr 2026 11:42:24 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1w7txn-00HA0c-1r for pgsql-hackers@lists.postgresql.org; Wed, 01 Apr 2026 11:42:23 +0000 Received: from fhigh-b2-smtp.messagingengine.com ([202.12.124.153]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1w7txm-000000028LR-0ktq for pgsql-hackers@lists.postgresql.org; Wed, 01 Apr 2026 11:42:22 +0000 Received: from phl-compute-05.internal (phl-compute-05.internal [10.202.2.45]) by mailfhigh.stl.internal (Postfix) with ESMTP id E9F337A00AF; Wed, 1 Apr 2026 07:42:20 -0400 (EDT) Received: from phl-frontend-04 ([10.202.2.163]) by phl-compute-05.internal (MEProxy); Wed, 01 Apr 2026 07:42:21 -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=fm2; t=1775043740; x=1775130140; bh=4 ywQ1ZkhxfekgVGWCyd/rZLNeMtIF9BJsa/3yhUA6bs=; b=pRmAM1R/o2zzH2r9m Akkv8BpxLDI5BU0YCXWxLMFJbKt7qBgc6O3UWdiqCK+A5tCo48dMGYK69rdpllRy eQ16c5Xz014qg7ncZ+s1cHEtc8jk+8Tqlu+T6KfSwQn6pc+jIHgGJtRp2FI+meoU UFo+oxIcBfasSf99eCnxZz+pbJznIKiOxwc1lG+VJVZWN2cskFlMj6bYYTTInaNN a0wQo2MmrSklfgUqV/uJCmZCmmtbqH6uHFFB46/FwoBmPRFQwHfzgo7P7qI8SwS+ vbcxrCB1GED0pTXa4sOqllpzprPot+6W4kG9QpAbNrw9HPhbV//4PRCs77WojQju OKrfw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefhedrtddtgdeftddvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceurghi lhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurh epfffhvfevuffkgggtugfgjgesthekredttddtjeenucfhrhhomheptehlvhgrrhhoucfj vghrrhgvrhgruceorghlvhhhvghrrhgvsegrlhhvhhdrnhhoqdhiphdrohhrgheqnecugg ftrfgrthhtvghrnhepvdektdffudfftdffffehfffhjeejhffgieeuueekjeekfffgudff hfduffffueevnecuffhomhgrihhnpegvnhhtvghrphhrihhsvggusgdrtghomhenucevlh hushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrlhhvhhgvrhhr vgesrghlvhhhrdhnohdqihhprdhorhhgpdhnsggprhgtphhtthhopeejpdhmohguvgepsh hmthhpohhuthdprhgtphhtthhopegrhhestgihsggvrhhtvggtrdgrthdprhgtphhtthho pegrmhhithdrkhgrphhilhgrudeisehgmhgrihhlrdgtohhmpdhrtghpthhtohepsghovg hkvgifuhhrmhdophhoshhtghhrvghssehgmhgrihhlrdgtohhmpdhrtghpthhtohepmhhi hhgrihhlnhhikhgrlhgrhigvuhesghhmrghilhdrtghomhdprhgtphhtthhopehsrhhinh grthhhvddufeefsehgmhgrihhlrdgtohhmpdhrtghpthhtohepphhgshhqlhdqhhgrtghk vghrsheslhhishhtshdrphhoshhtghhrvghsqhhlrdhorhhgpdhrtghpthhtoheprhhosg esgiiiihhllhgrrdhnvght X-ME-Proxy: Feedback-ID: ia2694551:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 1 Apr 2026 07:42:20 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alvh.no-ip.org; s=schmee; t=1775043737; bh=mSk2jEQ5A7bywP9eUckacsSgWPXRHSG3U61yG0CKIbA=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=J8qEA7FA2LRydhwTwlIFGC5/xX33b6Ku2/p3vzZBDEcjrcVhZoLxkfDd+/Qkh9IXe UoaXUEevh5monnSH2Nduy8ULbOYMlPLzYSqsVNNQ/OJ20N+3Dh9WR0dCTqzogKnVpW goG27aFb0v2Ys2/6kwQbx7YktBMZ/rzae+2fJ2APSr32QStHjxOBjeD5HDffF/mR7h Z/kcdq0CzzwxYp3zGI91hRX8vfja+C2ptaV2mQ+pix3nV80KDHJ8oF/Ug6uqrhaCaG 0acbhNoFHpqMuDDAGYNtrBc2qjJBx0mNjwqW7wKpLIi8UOivrMGWTihnEQJXm6htUQ pgRZ9Y9wyveUg== Received: by schmee.kurilemu.internal (Postfix, from userid 1000) id 10F747C; Wed, 01 Apr 2026 13:42:17 +0200 (CEST) Date: Wed, 1 Apr 2026 13:42:17 +0200 From: Alvaro Herrera To: Amit Kapila Cc: Antonin Houska , Mihail Nikalayeu , Srinath Reddy Sadipiralla , Matthias van de Meent , Pg Hackers , Robert Treat Subject: Re: Adding REPACK [concurrently] Message-ID: <202604011042.zdevjay65ws7@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 2026-Apr-01, Amit Kapila wrote: > BTW, is the reason to skip REPACK while building a snapshot is that it > can take a long time to finish? As I understand the issue, yes, that's precisely the problem: if you have one REPACK running, then starting a second REPACK (which requires building a new snapshot) would have to wait until the first REPACK is over. In other words, you wouldn't be able to have two repacks running concurrently. This sounds like a problematic requirement. So having snapbuild ignore REPACK is there to allow the second REPACK to work at all. But more generally, *all* users of snapbuild would be prevented from starting until REPACK is done; so if you have a very very large table that takes a long time to repack, then everything would be blocked behind it until it completes, which sounds extremely unpleasant. So, if we're unable to get this particular patch in, we would have to have a big fat warning in the docs, telling people to be careful about other load if they choose to run concurrent repack -- it could have serious consequences. But on the other hand, it's better to *have* the tool, even if it has problems, than not have it. Keep in mind that pg_repack and pg_squeeze also have all these problems/limitations (and others), and still people use them. -- Álvaro Herrera 48°01'N 7°57'E — https://www.EnterpriseDB.com/