Re: FATAL: could not send end-of-streaming message to primary: no COPY in progress

From: Xuneng Zhou <xunengzhou(at)gmail(dot)com>
To: Stepan Neretin <slpmcf(at)gmail(dot)com>
Cc: Zsolt Parragi <zsolt(dot)parragi(at)percona(dot)com>, pgsql-hackers(at)lists(dot)postgresql(dot)org, Fujii Masao <masao(dot)fujii(at)gmail(dot)com>
Subject: Re: FATAL: could not send end-of-streaming message to primary: no COPY in progress
Date: 2026-11-22 14:08:32
Message-ID: CABPTF7WiHnE_OMuwuXC6Of7zC9aRMRGu2O4RT4C4BrF5-8wa6g@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> Attached.

I haven't looked at the test yet.

+ * end of streaming.
+ */
+ if (conn->copyEnded)
+ {
+ conn->copyEnded = false;
+ *next_tli = 0;
+ return;
+ }

BTW, we can move *next_tli = 0; to the start of
libpqrcv_endstreaming() to save one extra assignment.

--
Regards,
Xuneng Zhou
HighGo Software Co., Ltd.

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Dean Rasheed 2026-11-22 14:11:59 Re: Allow isolation test steps to be declared inline.
Previous Message ZizhuanLiu X-MAN 2026-11-22 12:31:16 Optimize IS NOT DISTINCT FROM to equality when possible