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

Aleksander Alekseev <aleksander@timescale.com>

From: Aleksander Alekseev <aleksander@timescale.com>
To: pgsql-hackers@postgresql.org
Cc: Álvaro Herrera <alvherre@alvh.no-ip.org>, Evgeny Voropaev <evgeny.voropaev@tantorlabs.com>
Date: 2025-02-13T13:23:52Z
Lists: pgsql-hackers
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 extensively nowadays.

Got it, thanks. I was a bit worried about Visual Studio in particular.

-- 
Best regards,
Aleksander Alekseev