Re: Using read stream in autoprewarm - Mailing list pgsql-hackers

From Andrey M. Borodin
Subject Re: Using read stream in autoprewarm
Date
Msg-id CBEF45B4-9905-4DC5-87D1-2DFEA14EB6B3@yandex-team.ru
Whole thread Raw
In response to Re: Using read stream in autoprewarm  (Nazir Bilal Yavuz <byavuz81@gmail.com>)
List pgsql-hackers

> On 1 Nov 2024, at 12:51, Nazir Bilal Yavuz <byavuz81@gmail.com> wrote:
>
>  am not
> sure whether 'BufferStrategyControl.lastFreeBuffer -
> BufferStrategyControl.firstFreeBuffer' is safe to use.

Ugh... it will work. But it seems to me too dirty hack. There's no scalable way to know size of a free list.
Let's just comment that we might read some more buffers if database does not fit into memory?
Alternatively we can count size of a free list on the start.


Best regards, Andrey Borodin.


pgsql-hackers by date:

Previous
From: "Andrey M. Borodin"
Date:
Subject: Re: UUID v7
Next
From: Andres Freund
Date:
Subject: Re: AIO writes vs hint bits vs checksums