On Thu, Jun 4, 2020 at 1:53 PM Thomas Munro <thomas.munro@gmail.com> wrote: > On Thu, Jun 4, 2020 at 1:35 PM Tom Lane <tgl@sss.pgh.pa.us> wrote: > > Ah, it's better if I put the pqReadData call into *both* the paths > > where 1f39a1c06 made pqSendSome give up. The attached patch seems > > to fix the issue for the "pgbench -i" scenario, with either fast- > > or immediate-mode server stop. I tried it with and without SSL too, > > just to see. Still, it's not clear to me whether this might worsen > > any of the situations we discussed in the lead-up to 1f39a1c06 [1]. > > Thomas, are you in a position to redo any of that testing?
It seems to be behave correctly in that scenario.
Here's what I tested. First, I put this into pgdata/postgresql.conf: