Re: BUG #18754: Logical replication cannot restart if client sent a copyDone

From: Kacper Kuras <kacperkuras(at)hotmail(dot)com>
To: "Hayato Kuroda (Fujitsu)" <kuroda(dot)hayato(at)fujitsu(dot)com>
Cc: "ua(dot)san(dot)alex(at)gmail(dot)com" <ua(dot)san(dot)alex(at)gmail(dot)com>, "pgsql-bugs(at)lists(dot)postgresql(dot)org" <pgsql-bugs(at)lists(dot)postgresql(dot)org>, vignesh C <vignesh21(at)gmail(dot)com>, Michael Paquier <michael(at)paquier(dot)xyz>
Subject: Re: BUG #18754: Logical replication cannot restart if client sent a copyDone
Date: 2026-12-05 16:04:43
Message-ID: VI0P193MB3111517C292AA5C32E2DCDDCBF492@VI0P193MB3111.EURP193.PROD.OUTLOOK.COM
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Hi,

> I think he needs to clarify why he has to do, instead of re-connecting to
> the publisher. Otherwise, we cannot distinguish it's a good motivation or
> not.

The reporter hasn't replied since vignesh asked for steps to reproduce
in January 2025, so I wouldn't wait for an answer there.

The motivation doesn't have to come from the reporter. As I wrote in
my previous mail, reconnecting is not an option with a temporary slot:
no other connection can use it, and it is dropped when the session
ends.

Npgsql also has an open PR [1] that works around the bug by
cancelling logical streams instead of ending them with CopyDone.

[1] https://github.com/npgsql/npgsql/pull/6716

Regards,
Kacper Kuras

In response to

Browse pgsql-bugs by date

  From Date Subject
Previous Message ZizhuanLiu X-MAN 2026-12-05 15:33:05 Re: BUG #19926: Incorrect join selectivity for <> with NULLs (related to BUG #17545)