Re: Checkpointer write combining

Melanie Plageman <melanieplageman@gmail.com>

From: Melanie Plageman <melanieplageman@gmail.com>
To: Soumya S Murali <soumyamurali.work@gmail.com>
Cc: "li.evan.chao@gmail.com" <li.evan.chao@gmail.com>, "byavuz81@gmail.com" <byavuz81@gmail.com>, "andres@anarazel.de" <andres@anarazel.de>, pgsql-hackers@lists.postgresql.org
Date: 2025-12-15T21:50:31Z
Lists: pgsql-hackers
On Mon, Dec 8, 2025 at 2:14 AM Soumya S Murali
<soumyamurali.work@gmail.com> wrote:
>
> Here I made some changes in the logic of the function that only returns a real LSN when the buffer actually needs a WAL flush. If the buffer is not permanent or doesn’t need WAL, it returns false and set the LSN to InvalidXLogRecPtr, by which it can avoid confusions or unsafe downstream behaviors.

Thanks for the suggestions. It would be best if you attached a patch
instead of pasting it in the email like this with no formatting (and
no diff). It is very hard to tell what you've changed.

- Melanie