> On 14 Feb 2025, at 11:54, Evgeny Voropaev <evgeny.vorop...@tantorlabs.com> > wrote: > > <v2-0001-Elimination-of-the-repetitive-code-at-the-SLRU-bo.patch> Hi! Nice patch! BootStrapSlruPage() always calls zerofunc(pageno, false) with second argument false. In case of every possible argument (ZeroCLOGPage, ZeroCommitTsPage, ZeroMultiXactOffsetPage, ZeroMultiXactMemberPage, ZeroSUBTRANSPage) it means just a call to SimpleLruZeroPage(). I think we can safely replace + slotno = (*zerofunc)(pageno, false); with + slotno = SimpleLruZeroPage(pageno); Thus we will not need zerofunc argument at all. Thanks! Best regards, Andrey Borodin.
- Re: Elimination of the repetitive code at the SLRU boo... Aleksander Alekseev
- Re: Elimination of the repetitive code at the SLR... Álvaro Herrera
- Re: Elimination of the repetitive code at the... Aleksander Alekseev
- Re: Elimination of the repetitive code at... Evgeny Voropaev
- Re: Elimination of the repetitive cod... Andrey Borodin
- Re: Elimination of the repetitiv... Álvaro Herrera
- Re: Elimination of the repet... Evgeny Voropaev
- Re: Elimination of the r... Álvaro Herrera
- Re: Elimination of the r... Evgeny
- Re: Elimination of the r... Evgeny
- Re: Elimination of the r... Evgeny
- Re: Elimination of the r... Andrey Borodin
- Re: Elimination of the r... Evgeny Voropaev
- Re: Elimination of the r... Andrey Borodin
- Re: Elimination of the r... Álvaro Herrera