Back in 2016 a patch was proposed that seems to have died on the vine. See https://www.postgresql.org/message-id/flat/cafgjrd3hdyoa33m69tbeofnner2bzbwa8ffjt2v5vfztbvu...@mail.gmail.com
for the history and https://commitfest.postgresql.org/10/621/ for the commitfest entry. I've rebased the patches and attached them for consideration. JDBC tests here https://github.com/pgjdbc/pgjdbc/blob/master/pgjdbc/src/test/java/org/postgresql/replication/LogicalReplicationTest.java all pass Regards, Dave Cramer
0004-Add-test-for-pg_recvlogical-to-stop-replication.patch
Description: Binary data
0003-Add-ability-for-pg_recvlogical-to-stop-replication-f.patch
Description: Binary data
0002-Client-initiated-CopyDone-during-transaction-decodin.patch
Description: Binary data
0001-Respect-client-initiated-CopyDone-in-walsender.patch
Description: Binary data