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

From Andrey M. Borodin
Subject Re: Using read stream in autoprewarm
Date
Msg-id 84F0A4E0-5EAD-4E5E-AFF5-0788A28B3CDB@yandex-team.ru
Whole thread Raw
In response to Using read stream in autoprewarm  (Nazir Bilal Yavuz <byavuz81@gmail.com>)
Responses Re: Using read stream in autoprewarm
List pgsql-hackers

> On 8 Aug 2024, at 11:32, Nazir Bilal Yavuz <byavuz81@gmail.com> wrote:
>
> Any feedback would be appreciated.

I've took a look into the patch. It seems to me that you add new block numbers to the read stream until you have
buffers.So when there are no more buffers you will still have some queued blocks. 
Maybe can you change the logic so that number of free buffers must be enough to allocate all blocks in look-ahead
distance?

Thanks!


Best regards, Andrey Borodin.


pgsql-hackers by date:

Previous
From: Masahiko Sawada
Date:
Subject: Re: UUID v7
Next
From: Aleksander Alekseev
Date:
Subject: Re: [PATCH] Improve code coverage of network address functions