Re: Using read stream in autoprewarm

Поиск
Список
Период
Сортировка
От Andrey M. Borodin
Тема Re: Using read stream in autoprewarm
Дата
Msg-id CBEF45B4-9905-4DC5-87D1-2DFEA14EB6B3@yandex-team.ru
обсуждение исходный текст
Ответ на Re: Using read stream in autoprewarm  (Nazir Bilal Yavuz <byavuz81@gmail.com>)
Список 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 по дате отправления: