Re: Proposal: Conflict log history table for Logical Replication
Amit Kapila <amit.kapila16@gmail.com>
From: Amit Kapila <amit.kapila16@gmail.com>
To: Dilip Kumar <dilipbalaut@gmail.com>
Cc: shveta malik <shveta.malik@gmail.com>,
Masahiko Sawada <sawada.mshk@gmail.com>, Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>, PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2025-12-02T05:15:42Z
Lists: pgsql-hackers
Commits
Same data as JSON:
GET /api/v1/messages/:b64id/commits
the thread's linked commits as JSON, with link sources.
API reference →
-
Allow logical replication conflicts to be logged to a table.
- a5918fddf10d master landed
-
Avoid orphaned objects dependencies
- 2fbb21170e90 19 (unreleased) cited
On Wed, Nov 19, 2025 at 3:46 PM Dilip Kumar <dilipbalaut@gmail.com> wrote: > > On Tue, Nov 18, 2025 at 4:47 PM shveta malik <shveta.malik@gmail.com> wrote: > > > > > 3) > > Do we need to have a timestamp column as well to say when conflict was > > recorded? Or local_commit_ts, remote_commit_ts are sufficient? > > Thoughts > > You mean we can record the timestamp now while inserting, not sure if > it will add some more meaningful information than remote_commit_ts, > but let's see what others think. > local_commit_ts and remote_commit_ts sounds sufficient as one can identify the truth of information from those two. The key/schema values displayed in this table could change later but the information about a particular row is based on the time shown by those two columns. -- With Regards, Amit Kapila.