Re: Add shared buffer hits to pg_stat_io

Поиск
Список
Период
Сортировка
От Drouvot, Bertrand
Тема Re: Add shared buffer hits to pg_stat_io
Дата
Msg-id c5e746a9-7702-42bf-41da-43280f48b1d1@gmail.com
обсуждение исходный текст
Ответ на Re: Add shared buffer hits to pg_stat_io  (Melanie Plageman <melanieplageman@gmail.com>)
Список pgsql-hackers
Hi,

On 3/9/23 2:23 PM, Melanie Plageman wrote:
> On Wed, Mar 8, 2023 at 2:23 PM Andres Freund <andres@anarazel.de> wrote:
>>
>> On 2023-03-08 13:44:32 -0500, Melanie Plageman wrote:
>>> However, I am concerned that, while unlikely, this could be flakey.
>>> Something could happen to force all of those blocks out of shared
>>> buffers (even though they were just read in) before we hit them.
>>
>> You could make the test query a simple nested loop self-join, that'll prevent
>> the page being evicted, because it'll still be pinned on the outer side, while
>> generating hits on the inner side.
> 
> Good idea. v3 attached.

Thanks! The added test looks good to me.

Regards,

-- 
Bertrand Drouvot
PostgreSQL Contributors Team
RDS Open Source Databases
Amazon Web Services: https://aws.amazon.com



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Himanshu Upadhyaya
Дата:
Сообщение: Re: HOT chain validation in verify_heapam()
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Disable rdns for Kerberos tests