Re: Checkpointer write combining - Mailing list pgsql-hackers

From Jeff Davis
Subject Re: Checkpointer write combining
Date
Msg-id b4ad535a72fc02ea43076cf525e4dbaa72b00d5b.camel@j-davis.com
Whole thread Raw
In response to Re: Checkpointer write combining  (Melanie Plageman <melanieplageman@gmail.com>)
List pgsql-hackers
On Tue, 2025-09-09 at 13:55 -0400, Melanie Plageman wrote:
> On Tue, Sep 9, 2025 at 11:16 AM Melanie Plageman
> <melanieplageman@gmail.com> wrote:
> >
> > One more fix and a bit more cleanup in attached v4.
>
> Okay one more version: I updated the thread on eager flushing the
> bulkwrite ring [1], and some updates were needed here.

v5-0005 comments:

  * Please update the comment above the code change.
  * The last paragraph in the commit message has a typo: "potentially
update the local copy of min recovery point, when xlog inserts are
*not* allowed", right?
  * Shouldn't the code be consistent between XLogNeedsFlush() and
XLogFlush()? The latter only checks for !XLogInsertAllowed(), whereas
the former also checks for RecoveryInProgress().

I'm still not sure I understand the problem situation this is fixing,
but that's being discussed in another thread.

Regards,
    Jeff Davis




pgsql-hackers by date:

Previous
From: Quan Zongliang
Date:
Subject: Re: [BUG] PostgreSQL crashes with ThreadSanitizer during early initialization
Next
From: Jeff Davis
Date:
Subject: Re: Incorrect logic in XLogNeedsFlush()