Use pgBufferUsage for block reporting in analyze

Поиск
Список
Период
Сортировка
От Anthonin Bonnefoy
Тема Use pgBufferUsage for block reporting in analyze
Дата
Msg-id CAO6_Xqr__kTTCLkftqS0qSCm-J7_xbRG3Ge2rWhucxQJMJhcRA@mail.gmail.com
обсуждение исходный текст
Ответы Re: Use pgBufferUsage for block reporting in analyze
Список pgsql-hackers
Hi,

Analyze logs within autovacuum uses specific variables VacuumPage{Hit,Miss,Dirty} to track the buffer usage count. However, pgBufferUsage already provides block usage tracking and handles more cases (temporary tables, parallel workers...).

Those variables were only used in two places, block usage reporting in verbose vacuum and analyze. 5cd72cc0c5017a9d4de8b5d465a75946da5abd1d removed their usage in the vacuum command as part of a bugfix. 

This patch replaces those Vacuum specific variables by pgBufferUsage in analyze. This makes VacuumPage{Hit,Miss,Dirty} unused and removable. This commit removes both their calls in bufmgr and their declarations.

Regards,
Anthonin
Вложения

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

Предыдущее
От: Alexander Korotkov
Дата:
Сообщение: Re: [PATCH] Improve amcheck to also check UNIQUE constraint in btree index.
Следующее
От: Nazir Bilal Yavuz
Дата:
Сообщение: Re: gcc 12.1.0 warning