Re: bug on log generation ? - Mailing list pgsql-hackers

From Andres Freund
Subject Re: bug on log generation ?
Date
Msg-id 20220808160204.owjxz2eb234fba3k@awork3.anarazel.de
Whole thread Raw
In response to Re: bug on log generation ?  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: bug on log generation ?
List pgsql-hackers
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



pgsql-hackers by date:

Previous
From: Önder Kalacı
Date:
Subject: Re: [PATCH] Use indexes on the subscriber when REPLICA IDENTITY is full on the publisher
Next
From: Alvaro Herrera
Date:
Subject: Re: make update-po@master stops at pg_upgrade