Re: Incorrect logic in XLogNeedsFlush()

Michael Paquier <michael@paquier.xyz>

From: Michael Paquier <michael@paquier.xyz>
To: Melanie Plageman <melanieplageman@gmail.com>
Cc: Dilip Kumar <dilipbalaut@gmail.com>, Jeff Davis <pgsql@j-davis.com>, PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>, Andres Freund <andres@anarazel.de>
Date: 2025-09-30T00:41:09Z
Lists: pgsql-hackers
On Thu, Sep 25, 2025 at 04:53:29PM +0900, Michael Paquier wrote:
> I'd rather tackle each thing separately.

I have just applied the patch to reorder the checks as of
bb68cde4136b.  If you have patches for the rest, feel free to submit
them.
--
Michael

Commits

  1. Reorder XLogNeedsFlush() checks to be more consistent

  2. Make XLogFlush() and XLogNeedsFlush() decision-making more consistent