| From: | Amit Kapila <amit(dot)kapila16(at)gmail(dot)com> |
|---|---|
| To: | Dilip Kumar <dilipbalaut(at)gmail(dot)com> |
| Cc: | Nisha Moond <nisha(dot)moond412(at)gmail(dot)com>, Masahiko Sawada <sawada(dot)mshk(at)gmail(dot)com>, shveta malik <shveta(dot)malik(at)gmail(dot)com>, vignesh C <vignesh21(at)gmail(dot)com>, "Zhijie Hou (Fujitsu)" <houzj(dot)fnst(at)fujitsu(dot)com>, saurabh singh <saurabh(dot)singh214(at)gmail(dot)com>, Robert Haas <robertmhaas(at)gmail(dot)com>, Peter Smith <smithpb2250(at)gmail(dot)com>, Bharath Rupireddy <bharath(dot)rupireddyforpostgres(at)gmail(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org> |
| Subject: | Re: Proposal: Conflict log history table for Logical Replication |
| Date: | 2026-10-08 21:21:16 |
| Message-ID: | CAA4eK1JA9tmKgEQFC_Xq-_hh7_2NC1sFbfLOY91UbzZWP8cSVg@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
On Sun, Oct 4, 2026 at 2:01 AM Dilip Kumar <dilipbalaut(at)gmail(dot)com> wrote:
>
> Here is the failed test case
>
> -- On Publisher:
> CREATE TABLE tab_temporal (
> id int4range,
> valid_at datemultirange,
> PRIMARY KEY (id, valid_at WITHOUT OVERLAPS)
> );
> INSERT INTO tab_temporal VALUES ('[1,2)', '{[2020-01-01,2021-01-01)}');
> CREATE PUBLICATION pub_temporal FOR TABLE tab_temporal;
>
> -- On Subscriber:
> CREATE TABLE tab_temporal (
> id int4range,
> valid_at datemultirange,
> PRIMARY KEY (id, valid_at WITHOUT OVERLAPS)
> );
> CREATE SUBSCRIPTION sub_temporal
> CONNECTION '...'
> PUBLICATION pub_temporal
> WITH (conflict_log_destination = 'table');
>
> -- After initial sync, delete the row locally on the subscriber:
> DELETE FROM tab_temporal;
>
> -- Then delete the row on the publisher to trigger a
> delete_missing conflict:
> DELETE FROM tab_temporal;
>
> And without fix shared as a v77-0003 [1], this would error out with
> below error[2], I have explained the reason [1].
>
Okay, I see the problem but I wonder why you didn't consider using
rd_opcintype stored in index relation to solve this problem. I have
tried the attached atop v79-0001 and v79-0002, manually executed the
test you shared in this email and it fixed the issue for me.
--
With Regards,
Amit Kapila.
| Attachment | Content-Type | Size |
|---|---|---|
| v79_fix_rd_opcintype.txt | text/plain | 723 bytes |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Jacob Champion | 2026-10-08 21:28:19 | Re: Do we want to solve reload/config races more generally? (was: Postmaster crashes on SIGHUP when oauth_validator_libraries holds only whitespace) |
| Previous Message | David Rowley | 2026-10-08 20:59:03 | Re: [PATCH] Add memory/disk usage for Function Scan nodes in EXPLAIN |