Re: explanation for seeks in VACUUM

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: explanation for seeks in VACUUM
Дата
Msg-id 15476.1197677090@sss.pgh.pa.us
обсуждение исходный текст
Ответ на explanation for seeks in VACUUM  (Jeff Davis <pgsql@j-davis.com>)
Ответы Re: explanation for seeks in VACUUM  (Jeff Davis <pgsql@j-davis.com>)
Список pgsql-performance
Jeff Davis <pgsql@j-davis.com> writes:
> Where am I going wrong? Are many of these lseeks no-ops or something?

They're not supposed to be, but if you only tracked seeks and not
reads or writes, it's hard to be sure what's going on.

8.2's VACUUM should process a btree index (this is a btree index no?)
in physical order, so I'd expect lseeks only when a page is already in
buffers --- at least on the read side.  On the write side things might
be a great deal less predictable.  You're cleaning out about one tuple
in 30, so the odds are that nearly every index page is getting dirtied,
and they're going to need to be written sometime.

            regards, tom lane

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: VACUUM FREEZE output more than double input
Следующее
От: okparanoid@free.fr
Дата:
Сообщение: update 600000 rows