Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nBqVB-0004Hz-MU for pgsql-hackers@arkaria.postgresql.org; Mon, 24 Jan 2022 03:58:45 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nBqVA-0000hK-Gj for pgsql-hackers@arkaria.postgresql.org; Mon, 24 Jan 2022 03:58:44 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nBqVA-0000h7-7N for pgsql-hackers@lists.postgresql.org; Mon, 24 Jan 2022 03:58:44 +0000 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nBqV8-0003h1-3D for pgsql-hackers@postgresql.org; Mon, 24 Jan 2022 03:58:43 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id 0BB7F3201D51; Sun, 23 Jan 2022 22:58:39 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Sun, 23 Jan 2022 22:58:40 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= cc:cc:content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to; s=fm3; bh=kIGn9LjqROywiujT8KKla3sWT0GUU7R8bgL/+6 3Gqlo=; b=KQCIIRD2sIr13lPiAPNwpVV5ORrgrk+kaZX8fg0uYbkZRlhlsqV3tF Y8UG3oo1Rdnhj0y3M44OzDf5Mxeqd68H5OBuX0saLFCIDkh+mcjpCrTBsil6v2kT BjCF2Oe6+KEE4+FV+Csv3zQUgDixfqkKEbTUmvas/V5/HMClRXgOOxmbRw+oiTmr XroV+H7Lj1kGYjQbtTSlozpIj4uM6rCjgeDIke7CiQ4duzBWwAJlf9fyUjL7ipm1 wm4Ob4+Df2O3sWzCcBJwvbkNyZfGLP5TMem9QTgEsGmHzazGTzoBTbS77krqzTK7 xNRiQUgul7yrTqTruQfTGhz6YDAEIChQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=kIGn9LjqROywiujT8 KKla3sWT0GUU7R8bgL/+63Gqlo=; b=gaD9QxKoFe0ivXSb/+G7stQutDUvMitrM nEvBp20K/xpaY9dB0foPuV3+z4jQbBPKUEpNC0AX5XHeeuZeEk6N9LvPDjxIrRsR uDYzbDzBbvxAcGpjLQgfHeCtGR1sf94QaW3YfSK2eNcfuLJ74QRG835dWdau2c50 h5r311hBc5CQvR1DaEuZOhJl5wGVLHfsVPMlWYnYXbQfdQKvvGkBf1B+BiF2aiOh Y+zztp4KMR2750d9hgs/i2swP3qhXhKZk4tLh0L5/GOnd0PivwIZP3JqIsvHqw5V AZnXlzg+RB8q3qlmfgqFSjDEwfZZsJOz5oYsnFQfGTSsZmFN31Kyw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvvddrvdehgdeiiecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenfg hrlhcuvffnffculdejtddmnecujfgurhepfffhvffukfhfgggtuggjsehgtderredttddv necuhfhrohhmpefoihgthhgrvghlucfrrghquhhivghruceomhhitghhrggvlhesphgrqh huihgvrhdrgiihiieqnecuggftrfgrthhtvghrnhepvdegudeuhfdtueeltedtveejheeh ieevueeigeelteegleejleeiueeiheegvefhnecuvehluhhsthgvrhfuihiivgeptdenuc frrghrrghmpehmrghilhhfrhhomhepmhhitghhrggvlhesphgrqhhuihgvrhdrgiihii X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 23 Jan 2022 22:58:36 -0500 (EST) Date: Mon, 24 Jan 2022 12:58:34 +0900 From: Michael Paquier To: Dilip Kumar Cc: Amit Kapila , Alvaro Herrera , Petr Jelinek , Peter Eisentraut , Tomas Vondra , Andres Freund , Kuntal Ghosh , "tanghy.fnst@fujitsu.com" , pgsql-hackers Subject: Re: [BUG]Update Toast data failure in logical replication Message-ID: References: <202108101438.bmmf4gqklowd@alvherre.pgsql> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="XWuP3W59ctKFDhSB" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --XWuP3W59ctKFDhSB Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Wed, Aug 11, 2021 at 06:14:55PM +0530, Dilip Kumar wrote: > Right Amit, are you planning to look more at this patch? It has been a couple of months since the last update, and this is still a bug as far as I understand. FWIW, I find the API changes of HeapDetermineModifiedColumns() and ExtractReplicaIdentity() a bit grotty. Shouldn't we try to flatten the old tuple instead? There are things like toast_flatten_tuple_to_datum() for this purpose if a tuple satisfies HeapTupleHasExternal(), or just heap_copy_tuple_as_datum(). -- Michael --XWuP3W59ctKFDhSB Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmHuI+oACgkQnvQgOdby QH1EMxAAgMIgfYLmvicC7dbHFAyYk6iV339dgAdzn0REZzQKx/AfwlCK/m8XLeyQ IScWp5gd32IbZ6N+sTLsOLM+Lua+lsZLmYusahDQkeDVmsNNYBkVXrJD+gs4f6fh uNY2CF/Jo4QymYZXIkcbOqyADig+lt/i+aDDTL9sU+capxFA1CuBp+vqTLUT7BtS WaDZ56SHWoPxZuu+Uhl3+LYFgEcf22w5MfmdluCGZHo2rYs4amxfuBsxDX1S4xzm XeUqKFpReHdqDz2xDj0Nx5PPjPFoYheH84gdNNwvxMofvvO8QdKK1BYtgjNRE5nA lID0m421jLKm4rcbto8B/GQwoHAjbGBmctAYss5H3xJdHYTZptiHBdp4dYSQUeKa 1Plvs6nMzzSQb8Z2/4QMd8/ryR7vAEK1bUQiaiW5R6G2/q6vaHN0PO9OMsaK8tzz N8nHZKZfbiTDhm6f3ptEMynYJB0pGRwYvb3ooDmTYW0wZm6aklu8pLNZMCTCkQMM bWfqT00QsY09uqOF6kgJ26GcOnfFBHjLHA1BAN+nuY1rLVdu1x9JhUe/lm1mthwf eF4MnGGCDOFR47D96quhO6r63kFgdElAjum6JOHryjUdnf82rEHE3kPm8kHy92Ez KIc0J4M6sr8eH9OcUW036mdQNqWQQC6LIdXsvxv2IUvmcr9UNlA= =DlLQ -----END PGP SIGNATURE----- --XWuP3W59ctKFDhSB--