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 1vvHi6-00ByzX-2O for pgsql-hackers@arkaria.postgresql.org; Wed, 25 Feb 2026 16:26:02 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vvHi5-007Epo-2E for pgsql-hackers@arkaria.postgresql.org; Wed, 25 Feb 2026 16:26:01 +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 1vvHi5-007Epg-15 for pgsql-hackers@lists.postgresql.org; Wed, 25 Feb 2026 16:26:01 +0000 Received: from fhigh-a7-smtp.messagingengine.com ([103.168.172.158]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1vvHi2-00000001FIK-0gaV for pgsql-hackers@lists.postgresql.org; Wed, 25 Feb 2026 16:26:01 +0000 Received: from phl-compute-12.internal (phl-compute-12.internal [10.202.2.52]) by mailfhigh.phl.internal (Postfix) with ESMTP id C6D1214001A9; Wed, 25 Feb 2026 11:25:57 -0500 (EST) Received: from phl-frontend-03 ([10.202.2.162]) by phl-compute-12.internal (MEProxy); Wed, 25 Feb 2026 11:25:57 -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=fm3; t=1772036757; x=1772123157; bh=N yNklW9xDXcg1eqAyIhKeQhMipk4fVkCqg1osM/kcEk=; b=NrZ054unCuDm9hLpV 2durAmIq83Akc/p9pwMp/m4xQguYWSKPLgX18JubwPFg0gtnw39CWNvyHwCQDgIG wq/SJKt9x31uuLQN/d6jq29F2lP+U09hOzg3sxXp/qaY/1a9aje80PV2tjVdLDca ixkmyw2Cp1PV6G4boCcIZ4GDMm56Vl9RE4/0rMSokI/yFx9F8/aiTsMCo9p+RKKv FN2S+sWH2VSp1z4+hv2rSGlP/NezAdfXa9xCi5rDuz8hqkceza9tlAnJiFmKNevs iPnhn+hCOvO5itYV334+t2/xwby2MQ8WmiZqfSdE44Ab5ASeRSW3j+yBQml5S4KA RF7NA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgddvgeefheekucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujf gurhepfffhvfevuffkgggtugfgjgesthekredttddtjeenucfhrhhomheptehlvhgrrhho ucfjvghrrhgvrhgruceorghlvhhhvghrrhgvsegrlhhvhhdrnhhoqdhiphdrohhrgheqne cuggftrfgrthhtvghrnhepledvkedvueelteefffevjefgfeeuleehjedtieevjeelffeg feelgedvteekvdetnecuffhomhgrihhnpegvnhhtvghrphhrihhsvggusgdrtghomhdpph hoshhtghhrrdgvshenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhl fhhrohhmpegrlhhvhhgvrhhrvgesrghlvhhhrdhnohdqihhprdhorhhgpdhnsggprhgtph htthhopeegpdhmohguvgepshhmthhpohhuthdprhgtphhtthhopegrhhestgihsggvrhht vggtrdgrthdprhgtphhtthhopehmihhhrghilhhnihhkrghlrgihvghusehgmhgrihhlrd gtohhmpdhrtghpthhtohepphhgshhqlhdqhhgrtghkvghrsheslhhishhtshdrphhoshht ghhrvghsqhhlrdhorhhgpdhrtghpthhtoheprhhosgesgiiiihhllhgrrdhnvght X-ME-Proxy: Feedback-ID: ia2694551:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 25 Feb 2026 11:25:57 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alvh.no-ip.org; s=schmee; t=1772036754; bh=5tSk1I6St4PPK1KPyhxWbUEjC0B3XE6/OXjrk3zpH9E=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=Vb+Jc6/Sfw/pjQfjOHCH6uWVIuqw3tFnXoqm10CtNpFraNSGgmZlc138QA44GoMZb Nk4V1FcHnRq2J1eerK5nvRzXa8/Xzzcn3bK/PbGyok+QboYtlchXyd3y56aVO95cc8 +9umd242luZUCxwzp3ncwQOEGp3xrmdNSt/DOXyASfq+v+loQD5L55Mf1Gqyvrasf8 og1a8+hZP9Hg/8lxuDQCw+Gs/MdrzUU8ZTAkMu3BUUueKucGzFpImznCNVPaoJUHrN f2Mqm80S0RP3GRnJZhaFm4pUlsXQZfUfEUZc3YNoCyuoDgoVDCmdmhmQ6wEMUoztJX NXRwdnU+9J9QA== Received: by schmee.kurilemu.internal (Postfix, from userid 1000) id 2D9837A; Wed, 25 Feb 2026 17:25:54 +0100 (CET) Date: Wed, 25 Feb 2026 17:25:54 +0100 From: Alvaro Herrera To: Antonin Houska Cc: Mihail Nikalayeu , Pg Hackers , Robert Treat Subject: Re: Adding REPACK [concurrently] Message-ID: <202602251618.dpgvox64vziz@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <93330.1772035399@localhost> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2026-Feb-25, Antonin Houska wrote: > > Hmm, so on the apply side when reading the file, we would first reach > > each toast attribute value, which we know to insert directly to the > > toast table (keeping track of each individually toast pointer as we do > > so); then we reach the heap tuple itself, we [... somehow ...] interpret > > these external indirect toast pointers and substitute the toast pointers > > that we created. So we never have to construct the entire tuple, or > > indeed do anything else with the toasted values other than insert them > > into the toast table. > > Yes, that's what I mean. Makes sense. Would you be able to try and implement that? > The problem I see here is that for UPDATE you need the old tuple to determine > if its TOAST value should be deleted or if the new tuple should reuse it - > this is how I understand toast_tuple_init(). So the worker would have to store > all the changes somewhere temporarily until it can fully apply the changes > (i.e. until the initial copy and index build is complete). Ah, you're right, that won't work. -- Álvaro Herrera Breisgau, Deutschland — https://www.EnterpriseDB.com/ Tom: There seems to be something broken here. Teodor: I'm in sackcloth and ashes... Fixed. http://postgr.es/m/482D1632.8010507@sigaev.ru