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 1whE4e-0005ap-31 for pgsql-bugs@arkaria.postgresql.org; Tue, 07 Jul 2026 22:15:29 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1whE4d-002w7A-0z for pgsql-bugs@arkaria.postgresql.org; Tue, 07 Jul 2026 22:15:28 +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 1whE4c-002w70-2S for pgsql-bugs@lists.postgresql.org; Tue, 07 Jul 2026 22:15:27 +0000 Received: from fhigh-b3-smtp.messagingengine.com ([202.12.124.154]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1whE4b-000000003IA-1Tkz for pgsql-bugs@lists.postgresql.org; Tue, 07 Jul 2026 22:15:26 +0000 Received: from phl-compute-05.internal (phl-compute-05.internal [10.202.2.45]) by mailfhigh.stl.internal (Postfix) with ESMTP id 910F57A0074; Tue, 7 Jul 2026 18:15:24 -0400 (EDT) Received: from phl-frontend-03 ([10.202.2.162]) by phl-compute-05.internal (MEProxy); Tue, 07 Jul 2026 18:15:24 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= cc:cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm2; t=1783462524; x=1783548924; bh=62xXDzCDgD FnwRIjE4Y8QyCHM7t06XUVqUWgtbo0qnY=; b=L7vG6NfYOWPK79r7yW7T/h4DXH bpKPUHF9G2VfNMJ03mSfxkYszopFXMv55zU+0/ppWmLfywlDHK/+BHaSDPompX7b jtKOQHoIZTSEfXL5LNzl3aQmvUmKdGqa7AIUJCP1QrsS1Vo2GCsjLGPfSRBZ+S06 8iFXcruNlnn/ZdUl8W+67A+tefIRzcGpNdciLN8zmB2tyrSy+/kQogx67GWWQ1S3 Bu/BGS3bxOn9u5yepMt/Rcwc8dsZ98VshIjnAOo7iyB3DsQKxIXpLxeszfC/xbCo KPiFpAGouig9BRz7vv1m4ELIW+KSpz8ACqt5YWof+SrrGCwoDSvss2imKhpQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t= 1783462524; x=1783548924; bh=62xXDzCDgDFnwRIjE4Y8QyCHM7t06XUVqUW gtbo0qnY=; b=M8ryYhbZNTPj+hLMdtlveSY/W8msrjOoXg1ruXttDiYH/OkcQqd 192Qb4QKGOd91lsyqU0HteYfZI1sxnSe+HOs/0GKh6ctWsYumiDfbPaCwVYjzVET f0Sn5o+hDgaC/OFP9KSMv7KELaqrphvO413BRV2NP+aJtWgKgFY8V4TdB2XWjYKC NsArcGIg3b+CLS8/bQ7n8RCa1z9HcST1BghIqA6ng9hAAMUuEwo3X71cZQP40TjJ z7jOjjwR92aI82wtNy+gKe2POuvnELw06rDo4xvpYZdFTYp8CV/jaux6yYGFoteO 9wQ5JGJbzl8btT33yDjKuPuYu7z3q06SzWA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: dmFkZTGsYgpozcd4HgSlnB/4Seabv2Lh5NLEWdgMvLj0K7XLniIT0vv0s+tQ8D1/+cEgg1 uj1q53NmRpBZzwsbjOhTxM0EScuEw34ibExKK0ZOIK6YMIooUMWy3v1TyujbsRUD2ZLfYb UfsbPCMr97rTmV1iQZnRZa3W/tqKY2ZVa68h1BO0uwXvfCkS5E/KOt3iZtXoSvlV1YPcTn +a//j9iLs+0CAuoCugwBGBWph5ZoQ3b+/Q4YYwrVndQlHqD1IPgOrwrTrxLVy5en8wIFpd TEmQKjTpLjfU8wII4uIBgHpz9uYTEEDMCmNk6taPxX4i9pQsj34UOeDpvLhassrqxJIdXG BKxSnVKS0hP4kfZGXZof/RNF/rIKKsGm74I7uKmzJkL0VPK29ueurSY+Rwp92i3pxkSBoE +2ttq5Xey2jWGKO+Y1uVI2YeI2oFwsKNE476hjfpHCkfLAVw6gJkP6p4TCIb28JdRmJsiU mF+UKWvX293PqeMW0rf8wSqtynKYUxTcSrOSAcwGukI7rbHhiBGfjYSA4DxrBNVDYbMwYH esrwTnapUvkPDkn1Y0azo2pY6Ejn9UurdpdMaRD/Khyg2JAKYvdBDReiXqD3sY4EErSO04 /4Io/6h0J6Nyp4LW7Cs9N4zNUWhvt2HwVdlhiaBAzk7JaUJkDPuytTgEvPqQ X-ME-Proxy: Feedback-ID: i0fe9450f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 7 Jul 2026 18:15:21 -0400 (EDT) Date: Wed, 8 Jul 2026 07:15:16 +0900 From: Michael Paquier To: Srinath Reddy Sadipiralla Cc: Matthias van de Meent , Imran Zaheer , Alexander Lakhin , PostgreSQL mailing lists , Konstantin Knizhnik Subject: Re: BUG #19519: REPACK can fail due to missing chunk for toast value Message-ID: References: <19519-fe02d8ff679d834d@postgresql.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="Cj15TU4wi1BaCuQM" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --Cj15TU4wi1BaCuQM Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Tue, Jul 07, 2026 at 10:40:12PM +0530, Srinath Reddy Sadipiralla wrote: > I quickly reviewed the core logic of treating the missing > chunks as dead and LGTM will further look into this and test. Thanks for that. This is tricky and invasive enough that this warrants more eyes. One thing that I still don't like much in the patch as written is my use of a missing_ok argument, which feels super confusing as it applies only to the underlying external TOAST, if the relation has any. I'd be tempted to rewrite this portion of the patch with a uint32 flags. Even if we assign one value for now (say MISSING_TOAST, MISSING_TOAST_OK or whatever), it would allow more flexibility on ABI grounds if we want more like states in the future across this portion of the stack. Again, I strongly doubt that we will be able to backpatch any of that. -- Michael --Cj15TU4wi1BaCuQM Content-Type: application/pgp-signature; name=signature.asc -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmpNenQACgkQnvQgOdby QH3OFQ//a+AYUsS08oZsjEE/edn0s12YpSP3dQ4VVB01RV6uJSJz7pOz3vT9UZKA JQuW3tlYxPFTjF0HDpB1Ov95OVWLKPCLuFDNdrAIX6YogHRKLrfRNoVhTq+VMHwD Eg7wQIaTnqX7QG5WomoMsrjtAWg3KO6svZOPtuX2DmWFcF/lir6drRHUGzeXW1F+ XQCYtNv7v5LkbzrzACpPMKq+mE/V9yiB0iroGLNchE5Nkhg9uQV8VYQAf/Ew7U/O CkvY4x+IPK8HlZN/tNY1eIt/Rq8J3uFSRjlBxxBo047gWohCxglESLUXjf+dJcDr VRWciuPgmegyx2CanFe6OAXpsgduloVC8W2iu8AMmh9LzuatRHKNlLPH967K3lJ5 1WTxZbn7Xn6kcUeyUVUn42qDP/PatvItc8s7YFnNm6aHslRrZCn/DfFjN8Uc2pU2 bgg+WKvf/wbpLsYQ/V7nTbv2j0OG3zKY00PdeIsDLz8IEwA/t6OCRET16PyKi26U p9sz3a3+/WDwOWG6/NN55+35r+buyjNu9iSLs5C5lSIOi6/MB+s+Gl0j5ifsdefN H+xrrJ+ygj+BJeZXlU5biakO6y31iNrVoOY7dQIhSmNGvcuFKdOL8am0iB+emwWV aLG/bFMY7X7KvDTDt1vSrJr+/oihKimb1BEwo374qdAhk+F8zOU= =i0ld -----END PGP SIGNATURE----- --Cj15TU4wi1BaCuQM--