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 1wNCuh-000eIf-0Q for pgsql-hackers@arkaria.postgresql.org; Wed, 13 May 2026 16:58:27 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wNCuf-009rZe-26 for pgsql-hackers@arkaria.postgresql.org; Wed, 13 May 2026 16:58:25 +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.96) (envelope-from ) id 1wNCuf-009rZ7-0w for pgsql-hackers@lists.postgresql.org; Wed, 13 May 2026 16:58:25 +0000 Received: from fout-b4-smtp.messagingengine.com ([202.12.124.147]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1wNCub-00000000QsD-00ut for pgsql-hackers@lists.postgresql.org; Wed, 13 May 2026 16:58:24 +0000 Received: from phl-compute-04.internal (phl-compute-04.internal [10.202.2.44]) by mailfout.stl.internal (Postfix) with ESMTP id 3048D1D000C8; Wed, 13 May 2026 12:58:18 -0400 (EDT) Received: from phl-frontend-03 ([10.202.2.162]) by phl-compute-04.internal (MEProxy); Wed, 13 May 2026 12:58:18 -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=1778691497; x=1778777897; bh=B F1pvITAOuLk1TZdCbX03vTjjxDhKX5apkmSKXW07Bs=; b=EI0m/fhoGI2DKOzh1 AghPnb9K899Cq2WLw5yVylM5oKWRwSxsCSlfZ4T2uEh7wZKUuzAmuOZzioIuBRgd txU2nOW0w00mBSatX+3E+mB10E3MwvGmMjVcTE0ochlTluTZC2QDG2oFjbbZBPnd syioq90Gld9RQ821ftQYTLkGpgUt3m5bcniILAKTJKCwbNyVbC0SiDZzip5TyAl1 cwGFnUIGwE6MgCu77SRjbTV3xvpBLEh1IsyUHAKKotbIUS9ledIET3iejg7riyS4 YheK+BleTR+nWxAb3wccfrhko/F6fChl19vBE5Ausu3+ZiHuOHXdp62UNm1FuxyQ XQA+g== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefhedrtddtgdduvdehvddtucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujf gurhepfffhvfevuffkgggtugfgjgesthekredttddtjeenucfhrhhomheptehlvhgrrhho ucfjvghrrhgvrhgruceorghlvhhhvghrrhgvsegrlhhvhhdrnhhoqdhiphdrohhrgheqne cuggftrfgrthhtvghrnhepvdektdffudfftdffffehfffhjeejhffgieeuueekjeekfffg udffhfduffffueevnecuffhomhgrihhnpegvnhhtvghrphhrihhsvggusgdrtghomhenuc evlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrlhhvhhgv rhhrvgesrghlvhhhrdhnohdqihhprdhorhhgpdhnsggprhgtphhtthhopeekpdhmohguvg epshhmthhpohhuthdprhgtphhtthhopegrnhgurhgvshesrghnrghrrgiivghlrdguvgdp rhgtphhtthhopegrhhestgihsggvrhhtvggtrdgrthdprhgtphhtthhopegrmhhithdrkh grphhilhgrudeisehgmhgrihhlrdgtohhmpdhrtghpthhtohepsghovghkvgifuhhrmhdo phhoshhtghhrvghssehgmhgrihhlrdgtohhmpdhrtghpthhtohepmhhihhgrihhlnhhikh grlhgrhigvuhesghhmrghilhdrtghomhdprhgtphhtthhopehsrhhinhgrthhhvddufeef sehgmhgrihhlrdgtohhmpdhrtghpthhtohepphhgshhqlhdqhhgrtghkvghrsheslhhish htshdrphhoshhtghhrvghsqhhlrdhorhhgpdhrtghpthhtoheprhhosgesgiiiihhllhgr rdhnvght X-ME-Proxy: Feedback-ID: ia2694551:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 13 May 2026 12:58:17 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alvh.no-ip.org; s=schmee; t=1778691494; bh=1780QxPe0KghHDsuSjUJIEmGP7proyMj3Hre9FbsHp0=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=RhJ7Z92bS06OvVm9IwCPP37lUhg2J52SdFjInKT0erWt+pZYHz6t85yQD2d2QkgtW +3zJszVo0q6fxcrEaD4XcY0vv612p39Ed6XKafUbtUeWQpmQh3YRqSblSF+D8m7oPm Jl38uVo/23vWlv5GOk4ywclt04WwsUvSQh/groQU7tf6PEGcVMUknyK+0wDLfFY2xT nQBwznDRq9G0N//aJC55RXua+eYeyIzWHX8QEqcmL6g53suRKcanQqngrME76iJsJC bLQi0G7Epvbh4NmMhhLGcotnx/bU5vjxQRXcx6snjY/ZHF0i8Q4mdzIR/r6rydTqRP tVSz99uRH6v4Q== Received: by ida.kurilemu.internal (Postfix, from userid 1000) id D236AB05F6C; Wed, 13 May 2026 18:58:14 +0200 (CEST) Date: Wed, 13 May 2026 18:58:14 +0200 From: Alvaro Herrera To: Amit Kapila Cc: Antonin Houska , Mihail Nikalayeu , Andres Freund , Srinath Reddy Sadipiralla , Matthias van de Meent , Pg Hackers , Robert Treat Subject: Re: Adding REPACK [concurrently] Message-ID: 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 Hello Amit, On 2026-May-13, Amit Kapila wrote: > So now the question is where do we go from here. I am not confident > that the current code to achieve db-specific snapshots in logical > decoding is the best possible solution both because of the drawbacks > (like we won't be able to enable this on standby) and inefficiencies > pointed out by me in this and previous emails in this work. This is a fair question. I don't think we have time to go much further on this aspect before beta 1, so we either accept this patch, fix the inefficiencies you pointed out and keep db-specific snapshots, or we revert db-specific snapshots and go back to the standard snapshot-taking technique for REPACK in 19 and see what we can improve for 20. Now, the worst consequence of reverting db-specific snapshots is that you will only be able to run REPACK in a single database at a time (because any subsequent REPACK will have to wait until the first one finishes before being able to get its snapshot). In most normal cases this is probably not a big deal. But if you have a multitenant system, and you want your users to be able to run REPACK on their tables, you may be a bit screwed. So I hesitate to just go and revert it without offering those people any alternative. (It's also possible that being unable to run more than one REPACK at a time is not so big a deal. After all, it's supposed to be an infrequent operation. And users probably don't or shouldn't have multi-terabyte tables in multitenant databases anyway.) I'm not sure I understand the point of the standby. I mean, you can't run REPACK on the standby anyway, so I don't see this as a very problematic restriction. Do you have other reasons for wanting a db-specific snapshot in a standby? -- Álvaro Herrera PostgreSQL Developer — https://www.EnterpriseDB.com/