From: | Evgeny Voropaev <evgeny(dot)voropaev(at)tantorlabs(dot)com> |
---|---|
To: | pgsql-hackers(at)postgresql(dot)org |
Subject: | Elimination of the repetitive code at the SLRU bootstrap functions. |
Date: | 2025-02-13 07:15:01 |
Message-ID: | 97820ce8-a1cd-407f-a02b-47368fadb14b@tantorlabs.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Hello hackers!
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 member ZeroFunc is implemented in
the SlruCtlData structure. The ZeroFunc keeps a pointer to a function
proper for nullifying SLRU pages of a type defined by a corresponding
SlruCtlData object.
Applying proposed modifications can simplify maintenance and future
development of Postgres code in the realm of bootstrapping SLRU.
Best regards,
Evgeny Voropaev,
Tantor Labs LLC.
Attachment | Content-Type | Size |
---|---|---|
v1-0001-Elimination-of-the-repetitive-code-at-SLRU-bootst.patch | text/x-patch | 12.9 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | Michael Paquier | 2025-02-13 07:40:35 | Re: Fix for a crash caused by triggers in cross-partition updates |
Previous Message | Bertrand Drouvot | 2025-02-13 07:02:10 | Re: Track the amount of time waiting due to cost_delay |