Re: Proposal: Conflict log history table for Logical Replication - Mailing list pgsql-hackers

From Bharath Rupireddy
Subject Re: Proposal: Conflict log history table for Logical Replication
Date
Msg-id CALj2ACXCfYAY1mBCQWd2piCzrRyNWgAG7DUoLXccGT+tQz_-mQ@mail.gmail.com
Whole thread Raw
In response to Re: Proposal: Conflict log history table for Logical Replication  (Amit Kapila <amit.kapila16@gmail.com>)
List pgsql-hackers
Hi,

On Wed, Sep 10, 2025 at 8:13 PM Amit Kapila <amit.kapila16@gmail.com> wrote:
>
> > How about streaming the conflicts in fixed format to a separate log
> > file other than regular postgres server log file?
>
> I would prefer this info to be stored in tables as it would be easy to
> query them. If we use separate LOGs then we should provide some views
> to query the LOG.

Providing views to query the conflicts LOG is the easiest way than
having tables (Probably we must provide both - logging conflicts to
tables and separate LOG files). However, wanting the conflicts logs
after failovers is something that makes me think the table approach is
better. I'm open to more thoughts here.

--
Bharath Rupireddy
PostgreSQL Contributors Team
RDS Open Source Databases
Amazon Web Services: https://aws.amazon.com



pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: RFC: extensible planner state
Next
From: Bharath Rupireddy
Date:
Subject: Re: Proposal: Conflict log history table for Logical Replication