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

From: Aleksander Alekseev <aleksander(at)timescale(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Cc: Álvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>, Evgeny Voropaev <evgeny(dot)voropaev(at)tantorlabs(dot)com>
Subject: Re: Elimination of the repetitive code at the SLRU bootstrap functions.
Date: 2025-02-13 13:23:52
Message-ID: CAJ7c6TN6AkfbakbQk7mHwX5VBx=+v3vS_OiZMoWWE9tSvRiwoQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Fujii Masao 2025-02-13 13:49:06 Re: [PATCH] Add regression tests of ecpg command notice (error / warning)
Previous Message Peter Eisentraut 2025-02-13 13:23:25 Re: SQL:2011 application time