Hi,
On 2022-08-08 10:32:22 -0400, Tom Lane wrote:
> Andrew Dunstan <andrew@dunslane.net> writes:
> > What platform is this on? Is it possible that on some platform the chunk
> > size we're using is not doing an atomic write?
>
> Another idea is that some of the write() calls are failing --- elog.c
> doesn't check for that.
I was suspicious of those as well. It might be a good idea to at least write
such failures to stderr, otherwise it's just about impossible to debug. Not
that stderr will always point anywhere useful...
I can imagine that a system under heavy memory pressure might fail writing, if
there's a lot of writes in a row or such.
Greetings,
Andres Freund