Re: Simplify code building the LR conflict messages - Mailing list pgsql-hackers

From Álvaro Herrera
Subject Re: Simplify code building the LR conflict messages
Date
Msg-id 202512031437.2ftup2yiuyub@alvherre.pgsql
Whole thread Raw
In response to Re: Simplify code building the LR conflict messages  (Amit Kapila <amit.kapila16@gmail.com>)
Responses Re: Simplify code building the LR conflict messages
List pgsql-hackers
On 2025-Dec-01, Amit Kapila wrote:

> The reason for displaying in this style is that, in conflicts, users
> may want to define their custom resolution strategies based on
> conflict_type. Sometimes they need to resolve conflicts manually as
> well. To make an informed decision on which version of the row is
> "correct," the human reviewer needs full context.

I think it's odd that conflict resolution depends on log entries.  I
think it would be much more valuable if conflict reporting would save
the details of the conflict to some kind of conflict logging table.
How exactly are we expecting that users would bring the data from the
log file to a database row, when they are to be merged?  What happens if
there are bytea columns in the table?

-- 
Álvaro Herrera         PostgreSQL Developer  —  https://www.EnterpriseDB.com/



pgsql-hackers by date:

Previous
From: Álvaro Herrera
Date:
Subject: Re: Cleanup shadows variable warnings, round 1
Next
From: Ashutosh Bapat
Date:
Subject: Re: [PATCH] Add enable_copy_program GUC to control COPY PROGRAM