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.98.2) (envelope-from ) id 1xBDCi-000000034Ld-2iiD for pgsql-committers@arkaria.postgresql.org; Mon, 28 Sep 2026 15:23:45 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.98.2) (envelope-from ) id 1xBDCh-00000009tAE-2wnx for pgsql-committers@arkaria.postgresql.org; Mon, 28 Sep 2026 15:23:43 +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.98.2) (envelope-from ) id 1xBDCh-00000009tA4-0LIW for pgsql-committers@lists.postgresql.org; Mon, 28 Sep 2026 15:23:43 +0000 Received: from fout-b3-smtp.messagingengine.com ([202.12.124.146]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1xBDCf-00000001hkU-104J for pgsql-committers@lists.postgresql.org; Mon, 28 Sep 2026 15:23:42 +0000 Received: from phl-compute-03.internal (phl-compute-03.internal [10.202.2.43]) by mailfout.stl.internal (Postfix) with ESMTP id B9C901D000C8 for ; Mon, 28 Sep 2026 11:23:39 -0400 (EDT) Received: from phl-frontend-03 ([10.202.2.162]) by phl-compute-03.internal (MEProxy); Mon, 28 Sep 2026 11:23:39 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kurilemu.de; h= cc:content-transfer-encoding:content-type:content-type:date:date :from:from:in-reply-to:in-reply-to:message-id:mime-version :reply-to:subject:subject:to:to; s=fm3; t=1790609019; x= 1790695419; bh=k2z9HmyMtHz3WvV6l1QgtkM5TigN1i35yyIo1OuThw4=; b=a 3AREvvqF/aPKLPUaxAinxOMnwN5chWA/yIal7DPku/9al+RwONuEE/TLNuqH7zty Rri0PjNdEalUllnDfyclsKwzwTFyoHicWe1+zmtAEEhAKyrXJZTH7/+Dcb3b+lsB szW6bJ8J1nbjBe73uBoMVrjpTMYBiYofFPlpAxbabv4F5sOaxWxzCXfqcQaV7OdK wSHhbnSwUou+fLV0BTH0dLczcCcPPI8kmk80hVu2ZDPOapsE06YHjYVmcnHIn4zq 4WEbYyJxnluvQKo+7/y485S+db+aEbuDwCRDifx81T5Mnu46LuTpHQmb0FjBFY6o Db0kLxFq8JnQXLTjzYyoA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=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=1790609019; x=1790695419; bh=k2z9HmyMtHz3W vV6l1QgtkM5TigN1i35yyIo1OuThw4=; b=ZI6V+GScyVEK3VTHul4RglvgbPN9F pS9eq6LNt/16DV2K713cvMhZz9LxW/oW0lzFERlJYCIPjnCwqesP6xWbnIjqqM/O Jdb/OpUa/Zg/CLR9NKILl6dK38r4zB7jPslV8F8pn9vtITZ3BrT55OszRulHeAQ7 1iO2XglW9ELbToBGNAXkx9C4AftRRGen3IRz5gKPZgezGzaUuSqJaBBKbb52CWUz weTRO7Hb+1YGn2pJctMLHqwZRkbsWQ50mo8LEHgOmm8HYdBZGu3xqB4PVTkz4Tw7 MfFBmjJ2TkxOEb/4eUWUE9YJXzGaVYB5kzVOQOhsPHlvUs+ShWZbc4ZTA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: dmFkZTFmoTDZy2qVJoGsR52ENg4OG/Vv2pYNbKJb8jk+XRAz8fsZJSmhI1HkrTjL9+KNwy /sbyZAxtY2RE2di82x1Vx7Ipw2WgBsNRZKhjA7lOTsVCHWhlt3epIBkaa90nxL54k2d2c2 KqopCgQl+RzU15oAyl2c8Mhbdy2aiCnfuvJoNcwozv+YPfC4SS0O72+ynKjq4oTF8ZmREK AD1bHACyvKr7yvBKuduVds1gpqQAETNofC2phqVYflSgdYW9qVIyb6L0wwiQksrnXARhco Ohpmk8G0dUNFGjtspZgo/9Jmmjonoqk2UlXRUl8yfmCppmw3TVM8LVwp0oEP2AlTF/7vFW b3JS105ZocXdkJriAcy4mD6Gz8p1lgjRLHIxOHd/uDWIZWQW7+KCfMQems86ozVL4VEoc7 P5x6JErBCs9cGwt+rHOvsTir5AG6xzgwKDeRdOerSRmMU1hd3WF4TeSGklybT2UXdlieIq CMbjYVKS3P4qWLC2DVPzoXLkdPlaaEauA9A2BzxuhLC5ygk+X2mvgrvsgqYbfe+acrPGhl dEtp9AajP7O+F2q3qHwhJVoZsnGELd8acK90cIwyHbB7QvABSPIg8C79e8kcQieZZdZuQH WzQaBm6L30TGUzNt26gRuqoHYUQUAkV/3m8sZoA/JXLpuhc55ytpjXs79wIw X-ME-Proxy: Feedback-ID: ie3de48e3:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Mon, 28 Sep 2026 11:23:39 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kurilemu.de; s=schmee; t=1790609014; bh=++8jD9p2qw+IJ/EEHonw5jjMylrCyx9NqhfTbKvg9oM=; h=Date:From:To:Subject:In-Reply-To:From; b=2ostdD8FxGJAHCtP7VqEzxzgc9H/pSPtIqenbHo9copXXqXSepFqPpseQCsJA4xI5 tCfY4IYgKRPalmlkKLbfvHvayPsaFBESpDIn6J9obms9XdfGon4C9YS1c+yRIz7tix JdB0ZIVM4R1rMx5yVDk9NBhDq22EBAWMAZt//49oRKJB5HAlYkh4BgqBH6vQ6il1HJ tOPzou9c/+TWjag6javfza2mmw6Ug214Eld9EJmxWYvUKlY5bkeO9nW7QhOSGT2ylJ XwyHdeuEUGMRfNwZvexbADhF2Wo+hBxpDz1OQHIfZYnrHJ6grIt+5B6liqhibt/dFy zJWuHtZYbqOGg== Received: by ida.kurilemu.internal (Postfix, from userid 1000) id 8A7B4B00099; Mon, 28 Sep 2026 17:23:34 +0200 (CEST) Date: Mon, 28 Sep 2026 17:23:34 +0200 From: =?utf-8?Q?=C3=81lvaro?= Herrera To: pgsql-committers@lists.postgresql.org Subject: Re: pgsql: Lock the TOAST table early in 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 On 2026-Sep-28, Álvaro Herrera wrote: > Lock the TOAST table early in REPACK (CONCURRENTLY) > > The decoding worker records the relfilenumber of the TOAST table when it > starts, and skips changes stored under any other one, but the TOAST > table was not locked until the data copy began. If VACUUM FULL rewrote > it while the worker was starting, concurrent updates of TOASTed columns > were silently lost. Oops, I used CheckRelationOidLockedByMe() assuming it does what its name implies, which it doesn't. Will fix. -- Álvaro Herrera 48°01'N 7°57'E — https://www.EnterpriseDB.com/ "After a quick R of TFM, all I can say is HOLY CR** THAT IS COOL! PostgreSQL was amazing when I first started using it at 7.2, and I'm continually astounded by learning new features and techniques made available by the continuing work of the development team." Berend Tober, http://archives.postgresql.org/pgsql-hackers/2007-08/msg01009.php