Re: Proposal: Conflict log history table for Logical Replication

From: Amit Kapila <amit(dot)kapila16(at)gmail(dot)com>
To: "Hayato Kuroda (Fujitsu)" <kuroda(dot)hayato(at)fujitsu(dot)com>
Cc: Zhijie Hou <houzhijie22(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>, 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>, 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>, shveta malik <shvetamalik(at)gmail(dot)com>
Subject: Re: Proposal: Conflict log history table for Logical Replication
Date: 2026-11-26 04:27:15
Message-ID: CAA4eK1Jr5ows88Dy1VpSjS8c7voU+K_F81bik24G_-cyO3x2TA@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Thu, Nov 26, 2026 at 9:03 AM Hayato Kuroda (Fujitsu)
<kuroda(dot)hayato(at)fujitsu(dot)com> wrote:
>
> > Improving it might require teaching the dependency machinery (e.g.,
> > maybe via a new PERFORM_DELETION_* flag) whether the caller supports
> > CASCADE, so I think we could consider it as a separate improvement.
>
> Right. A patch like attached fixes the issue, but it may be to be adopted to
> other areas. See the output [1].
>

It is better to discuss this as a separate fix as we need the same fix
for other pre-existing commands as shared by Hou-San. Also, I am not
sure if this is the best fix for all situations as we can even decide
to give a different HINT than the current one such that the HINT
indicates to remove/drop the dependent objects first.

--
With Regards,
Amit Kapila.

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message David Rowley 2026-11-26 04:57:14 Re: Make pg_strtok() a bit faster
Previous Message shveta malik 2026-11-26 04:26:49 Re: Proposal: Conflict log history table for Logical Replication