Re: Elimination of the repetitive code at the SLRU bootstrap functions.

From: Álvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>
To: Aleksander Alekseev <aleksander(at)timescale(dot)com>
Cc: Evgeny Voropaev <evgeny(dot)voropaev(at)tantorlabs(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Elimination of the repetitive code at the SLRU bootstrap functions.
Date: 2025-02-13 13:21:33
Message-ID: 202502131321.2sqov6eica6u@alvherre.pgsql
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

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 -- we use them quite extensively nowadays.

> Wouldn't it be simpler to pass the callback straight to
> BootStrapSlruPage()?

Yeah, maybe this would be easier.

--
Álvaro Herrera PostgreSQL Developer — https://www.EnterpriseDB.com/
"Just treat us the way you want to be treated + some extra allowance
for ignorance." (Michael Brusser)

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Eisentraut 2025-02-13 13:23:25 Re: SQL:2011 application time
Previous Message jian he 2025-02-13 13:06:59 Re: Virtual generated columns