Hi Manu, Thanks for posting your patch, I have 3 thoughts.
1. I think it kills more than client writes. With a 2s timeout it also killed a session waiting for sync rep, and a COPY FROM STDIN client that paused(in primary), 2. 061 failed 4 of 11 runs here. slow_reader stops reading before the checksums launcher waits, so it gets killed. 3. shouldTerminateBarrierStraggler() recheck pss_barrierGeneration under pss_mutex? because it can kill a new backend in the same slot. Thanks, Shihao
