On 2021-04-28 23:20:00 -0400, Tom Lane wrote: > (At least not before the fabled stats collector rewrite, which may well > introduce some entirely new set of failure modes.)
FWIW, I added a function that forces a flush there. That can be done synchronously and the underlying functionality needs to exist anyway to deal with backend exit. Makes it a *lot* easier to write tests for stats related things...