| From: | shveta malik <shveta(dot)malik(at)gmail(dot)com> |
|---|---|
| To: | Kedar Anavardekar <kedar(dot)anwardekar3(at)gmail(dot)com> |
| Cc: | Dilip Kumar <dilipbalaut(at)gmail(dot)com>, Amit Kapila <amit(dot)kapila16(at)gmail(dot)com>, Peter Smith <smithpb2250(at)gmail(dot)com>, vignesh C <vignesh21(at)gmail(dot)com>, Nisha Moond <nisha(dot)moond412(at)gmail(dot)com>, Masahiko Sawada <sawada(dot)mshk(at)gmail(dot)com>, Bharath Rupireddy <bharath(dot)rupireddyforpostgres(at)gmail(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>, shveta malik <shveta(dot)malik(at)gmail(dot)com> |
| Subject: | Re: Proposal: Conflict log history table for Logical Replication |
| Date: | 2026-07-09 12:10:57 |
| Message-ID: | CAJpy0uDumbbp_o7x2jm0bqm1OsSdB2SiX6gf_BadzTGi2OPaxw@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
On Thu, Jul 9, 2026 at 5:11 PM Kedar Anavardekar
<kedar(dot)anwardekar3(at)gmail(dot)com> wrote:
>
> > I rebased the remaining patches on top of HEAD. So far, I have run
> > pgindent and completed the doc merge for 0001. The 0002 and 0003 are
> > just rebased.
> >
>
> Hi Dilip,
>
> I was testing on the master branch (commit
> a5918fddf10d297c70f7ec9067e9177e0be6d520 -
> "Allow logical replication conflicts to be logged to a table") for
> basic CLT operations,
> and ran into an issue I'd like to check with you.
> I ran the SQL from the shell script and expected an insert conflict to
> get logged in the CLT. I created the subscription as follows:
>
> create subscription sub connection '...' publication pub
> WITH(conflict_log_destination='table');
> NOTICE: created conflict log table
> "pg_conflict.pg_conflict_log_16414" for subscription "sub"
> NOTICE: created replication slot "sub" on publisher
> CREATE SUBSCRIPTION
>
> However, I noticed that the conflicts are still being logged to the
> log file rather than to pg_conflict.pg_conflict_log_16414.
>
> Would you be able to let me know if my test setup was correct, or if
> I'm missing a step somewhere? Any pointers would be much appreciated.
>
The concerned commit only creates the infrastructure required for
conflict logging, it does not enable conflict logging yet. Please see
the last paragraph of the commit message:
"This commit only establishes the conflict log table along with its
creation, cleanup, and protection; recording the conflicts detected
during apply into the table will be handled in a follow-up commit."
The patch for conflict insertion is in progress in this thread. See
v64 attached in [1].
thanks
Shveta
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Fujii Masao | 2026-07-09 12:14:46 | Re: Add a hook for handling logical decoding messages on subscribers. |
| Previous Message | Kedar Anavardekar | 2026-07-09 11:41:18 | Re: Proposal: Conflict log history table for Logical Replication |