Re: Displaying accumulated autovacuum cost

Поиск
Список
Период
Сортировка
От Robert Haas
Тема Re: Displaying accumulated autovacuum cost
Дата
Msg-id CA+TgmoadM7k8scsW4t_LzLLaRGy79NckaX4+jXrWX_BjB7jOqw@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Displaying accumulated autovacuum cost  (Alvaro Herrera <alvherre@commandprompt.com>)
Ответы Re: Displaying accumulated autovacuum cost  (Greg Smith <greg@2ndQuadrant.com>)
Re: Displaying accumulated autovacuum cost  (Fujii Masao <masao.fujii@gmail.com>)
Список pgsql-hackers
On Fri, Nov 25, 2011 at 11:39 AM, Alvaro Herrera
<alvherre@commandprompt.com> wrote:
> I'm going to push this now anyway, thanks.

This patch adds a count of the number of buffers dirtied to VACUUM,
but it strikes me that it would be useful to add similar tracking to
pgBufferUsage.  Attached is a patch for that.  You can see the new
counters through pg_stat_statements or with EXPLAIN (ANALYZE,
BUFFERS).  This is useful because the number of buffers that a query
*writes* doesn't necessarily have much to do with anything - it may
end up writing buffers dirtied by other queries while being read-only
itself, or conversely it may not write anything at all even though it
dirties quite a bit.

Thoughts?  Comments?  Objections?

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

Вложения

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

Предыдущее
От: Jeff Janes
Дата:
Сообщение: Re: Measuring relation free space
Следующее
От: Jaime Casanova
Дата:
Сообщение: Re: [COMMITTERS] pgsql: Enable CHECK constraints to be declared NOT VALID