Re: Proposal: Conflict log history table for Logical Replication
shveta malik <shveta.malik@gmail.com>
From: shveta malik <shveta.malik@gmail.com>
To: Amit Kapila <amit.kapila16@gmail.com>
Cc: vignesh C <vignesh21@gmail.com>, Dilip Kumar <dilipbalaut@gmail.com>, Nisha Moond <nisha.moond412@gmail.com>, Peter Smith <smithpb2250@gmail.com>, Masahiko Sawada <sawada.mshk@gmail.com>, Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>, PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>,
shveta malik <shveta.malik@gmail.com>
Date: 2026-04-28T05:12:51Z
Lists: pgsql-hackers
On Tue, Apr 28, 2026 at 9:45 AM Amit Kapila <amit.kapila16@gmail.com> wrote: > > 6. Commit message states: > "If the user chooses to enable logging to a table (by selecting > 'table' or 'all'), > an internal logging table named conflict_log_table_<subid> is automatically > created .." > > I see that the patch creates a table with the name > pg_conflict_<subid>. Apart from updating the commit message, how about > naming the table as pg_conflict_log_<subid> or pg_subconflict_<subid>. > In the first alternative pg_conflict_log_<subid>, the table name in > isolation without schema name describes its purpose, the second > alternative breaks the repetitiveness of pg_conflict when used with > schema like pg_conflict.pg_conflict_16394. > +1 for pg_conflict.pg_conflict_log_<subid>. It feels more intuitive, and it leaves room for other tables with the pg_conflict_* prefix in the pg_conflict schema if needed in the future. thanks Shveta
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