Re: [BUG]Update Toast data failure in logical replication - Mailing list pgsql-hackers

From Michael Paquier
Subject Re: [BUG]Update Toast data failure in logical replication
Date
Msg-id Ye4j6oSeMDz3aPNs@paquier.xyz
Whole thread Raw
In response to Re: [BUG]Update Toast data failure in logical replication  (Dilip Kumar <dilipbalaut@gmail.com>)
Responses Re: [BUG]Update Toast data failure in logical replication
Re: [BUG]Update Toast data failure in logical replication
List pgsql-hackers
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

Attachment

pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: fairywren is generating bogus BASE_BACKUP commands
Next
From: "David G. Johnston"
Date:
Subject: Re: Bogus duplicate command issued in pg_dump