Re: Proposal: Conflict log history table for Logical Replication

From: vignesh C <vignesh21(at)gmail(dot)com>
To: Amit Kapila <amit(dot)kapila16(at)gmail(dot)com>
Cc: Zhijie Hou <houzhijie22(at)gmail(dot)com>, Peter Smith <smithpb2250(at)gmail(dot)com>, 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>, shihao zhong <zhong950419(at)gmail(dot)com>, Dilip Kumar <dilipbalaut(at)gmail(dot)com>, saurabh singh <saurabh(dot)singh214(at)gmail(dot)com>, Robert Haas <robertmhaas(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 <shvetamalik(at)gmail(dot)com>
Subject: Re: Proposal: Conflict log history table for Logical Replication
Date: 2026-11-26 15:35:11
Message-ID: CALDaNm0mVpMp=dDsxNjbHkOgzmtCuFqC9a2cYR_CFhCWqqWC5w@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Thu, 26 Nov 2026 at 16:58, Amit Kapila <amit(dot)kapila16(at)gmail(dot)com> wrote:
>
> I am wondering why we need this special handling in
> selectDumpableTable at all for CLT? Can't the following handles both
> your and current cases by having a branch as follows in
> selectDumpableNamespace()
> else if (strcmp(nsinfo->dobj.name, “pg_conflict”) == 0)
> {
> nsinfo->dobj.dump = DUMP_COMPONENT_ACL;
> nsinfo->dobj.dump_contains = fout->dopt->binary_upgrade ?
> DUMP_COMPONENT_ALL : DUMP_COMPONENT_NONE;
> }

This is now moved from selectDumpableTable to selectDumpableNamespace,
the v98 version patch attached at [1] has the changes for the same.

> Will it be better if we split this patch to preserve subid across
> upgrade into a separate patch as that would be required for commit_ts
> upgrade as well? And start a separate thread to preserve CLT during
> upgrade (that thread can contain both preserve subid patch and CLT vs.
> dump/upgrade handling).

+1 for this, I will handle this while posting the next version.

[1] - https://www.postgresql.org/message-id/CALDaNm08sHU%3DBowHwEdurWt0-XwsAYB0drL_1%3DS-_XJC4atnqQ%40mail.gmail.com

Regards,
Vignesh

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message ZizhuanLiu X-MAN 2026-11-26 16:03:28 Normalize RelabelTypes after stripping PlaceHolderVars
Previous Message vignesh C 2026-11-26 15:29:44 Re: Proposal: Conflict log history table for Logical Replication