Fix FATAL when primary ends streaming with COPY 0

Log in to edit
ID 7654
Title Fix FATAL when primary ends streaming with COPY 0
CI (CFBot) Summary
Stats (from CFBot) Patch version: v6, Patch count: 2, First patch: +49−8, All patches: +218−8
Tags Bugfix
Created 2026-11-17 07:40:09
Last modified 2026-11-17 07:40:09 (2 weeks ago)
Latest email 2026-11-22 15:53:25 (1 week ago)
Status
PG20-4 (2027-01-01 – 2027-01-31): Needs review
Target version
Authors Stepan Neretin (snpgg)
Reviewers Log in to become reviewer
Committer
Links
Emails
FATAL: could not send end-of-streaming message to primary: no COPY in progress
First at 2026-11-16 17:58:12 by Stepan Neretin <slpmcf at gmail.com>
Latest at 2026-11-22 15:53:25 by Stepan Neretin <slpmcf at gmail.com>
Latest attachment (v6-0001-Fix-FATAL-when-primary-ends-streaming-with-COPY-0.patch) at 2026-11-22 15:53:25 from Stepan Neretin <slpmcf at gmail.com>
    Attachment (v6-0001-Fix-FATAL-when-primary-ends-streaming-with-COPY-0.patch) at 2026-11-22 15:53:25 from Stepan Neretin <slpmcf at gmail.com> (Patch: No)
    Attachment (v5-0002-Add-TAP-tests-for-primary-publisher-shutdown-during-.patch) at 2026-11-22 09:16:31 from Stepan Neretin <slpmcf at gmail.com> (Patch: No)
    Attachment (v3-0002-Add-TAP-tests-for-primary-publisher-shutdown-during-.patch) at 2026-11-18 04:19:17 from Stepan Neretin <slpmcf at gmail.com> (Patch: No)
    Attachment (v2-0001-Fix-FATAL-when-primary-ends-streaming-with-COPY-0.patch) at 2026-11-17 07:30:10 from Stepan Neretin <slpmcf at gmail.com> (Patch: No)
    Attachment (0002-Add-TAP-test-for-primary-shutdown-end-of-streaming-F.patch) at 2026-11-16 17:58:12 from Stepan Neretin <slpmcf at gmail.com> (Patch: No)
History
When Who What
2026-11-22 09:32:36 CFbot Patch does not need rebase anymore
2026-11-21 14:38:35 CFbot Patch needs rebase
2026-11-17 07:40:09 Stepan Neretin (snpgg) Attached mail thread CA+Yyo5S_n3ZcZh-3LXNj2-rxqXnbGd8901Yres0LPUS=tTLjaQ@mail.gmail.com
2026-11-17 07:40:09 Stepan Neretin (snpgg) Created patch record
Log in to edit