Re: SLRU_PAGES_PER_SEGMENT as configure parameter

From: Daniel Gustafsson <daniel(at)yesql(dot)se>
To: Daniil Davydov <3danissimo(at)gmail(dot)com>
Cc: PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: SLRU_PAGES_PER_SEGMENT as configure parameter
Date: 2025-02-06 13:23:33
Message-ID: D6752209-87BF-4AF2-84E9-110395E1A46F@yesql.se
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> On 6 Feb 2025, at 11:53, Daniil Davydov <3danissimo(at)gmail(dot)com> wrote:

> The constant SLRU_PAGES_PER_SEGMENT defines the size of the SLRU
> segments. It is currently hardcoded in slru.h. It would be nice to be
> able to set this parameter during configuration (for example, by
> analogy with --with-segsize-blocks).

Not commenting on the gist of the patch, but the mechanics:

configure | 52 ++++++++

You should include the configure.ac changes and not just the generated code in
configure (which is fine to include for review, but the committer will
re-generate it regardless). Please also include the corresponding Meson change
to keep the buildsystems in sync.

--
Daniel Gustafsson

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message vignesh C 2025-02-06 13:56:33 Re: Introduce XID age and inactive timeout based replication slot invalidation
Previous Message Andrew Dunstan 2025-02-06 13:07:37 Re: Docs for pg_basebackup needs v17 note for incremental backup