Re: Using read stream in autoprewarm

From: "Andrey M(dot) Borodin" <x4mmm(at)yandex-team(dot)ru>
To: Nazir Bilal Yavuz <byavuz81(at)gmail(dot)com>
Cc: PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: Using read stream in autoprewarm
Date: 2024-10-31 18:18:21
Message-ID: 84F0A4E0-5EAD-4E5E-AFF5-0788A28B3CDB@yandex-team.ru
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> On 8 Aug 2024, at 11:32, Nazir Bilal Yavuz <byavuz81(at)gmail(dot)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.

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Aleksander Alekseev 2024-10-31 18:19:57 Re: [PATCH] Improve code coverage of network address functions
Previous Message Masahiko Sawada 2024-10-31 18:15:36 Re: UUID v7