Hello hackers!
> I think the overall idea here is good, but I didn't like the new
> WriteSlruZeroPageXlogRec helper function; it looks too much like a
> modularity violation (same for the fact that you have to pass the rmid
> and info from each caller into slru.c). I would not do that in slru.c
>
On 2025-Feb-18, Evgeny Voropaev wrote:
> Created functions BootStrapSlruPage,SimpleLruZeroAndLogPage,
> WriteSlruZeroPageXlogRec. Using of these functions allows to delete
> ZeroXYZPage functions, WriteXYZZeroPageXlogRec functions and eliminate code
> repetitions.
I think the overall idea here is
On 17.02.2025 21:00, Álvaro Herrera wrote:
On 2025-Feb-17, Andrey Borodin wrote:
BootStrapSlruPage() always calls zerofunc(pageno, false) with second argument
false.
In case of every possible argument (ZeroCLOGPage, ZeroCommitTsPage,
ZeroMultiXactOffsetPage, ZeroMultiXactMemberPage, ZeroSUBT
On 2025-Feb-17, Andrey Borodin wrote:
> 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 Simp
> On 14 Feb 2025, at 11:54, Evgeny Voropaev
> wrote:
>
>
Hi! Nice patch!
BootStrapSlruPage() always calls zerofunc(pageno, false) with second argument
false.
In case of every possible argument (ZeroCLOGPage, ZeroCommitTsPage,
ZeroMultiXactOffsetPage, ZeroMultiXactMemberPage, ZeroSUBTRANS
ject: [PATCH v2] Elimination of the repetitive code at the SLRU bootstrap
functions.
The functions bootstrapping SLRU pages used to have a lot of repetitive code. The new
realized function BootStrapSlruPage has moved duplicating code into the
single place and eliminated code repetitions.
Author:
Hi Alvaro,
> > Since BootStrapSlruPage() is the only caller of ZeroPage() it seems to
> > me that it merely wastes space in SlruCtlData. On top of that I'm not
> > 100% sure if all the supported platforms have C99 compilers with
> > designated initializers support.
>
> They do -- we use them quite
On 2025-Feb-13, Aleksander Alekseev wrote:
> Since BootStrapSlruPage() is the only caller of ZeroPage() it seems to
> me that it merely wastes space in SlruCtlData. On top of that I'm not
> 100% sure if all the supported platforms have C99 compilers with
> designated initializers support.
They do
Hi Evgeny,
> The functions, bootstrapping SLRU pages, such as BootStrapMultiXact,
> BootStrapCLOG, ActivateCommitTs, multixact_redo and others, have a lot
> of repetitive code.
>
> A new proposed function BootStrapSlruPage moves a duplicating code into
> the single place. Additionally, a new membe
realm of bootstrapping SLRU.
Best regards,
Evgeny Voropaev,
Tantor Labs LLC.From 62762bf4a86af76d845755e41f46714d2b41bbe4 Mon Sep 17 00:00:00 2001
From: Evgeny Voropaev
Date: Thu, 13 Feb 2025 12:43:20 +0800
Subject: [PATCH v1] Elimination of the repetitive code at the SLRU bootstrap
functions
10 matches
Mail list logo