Re: Need help understanding vacuum verbose output

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Need help understanding vacuum verbose output
Дата
Msg-id 3332.1281045659@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Need help understanding vacuum verbose output  (Gordon Shannon <gordo169@gmail.com>)
Ответы Re: Need help understanding vacuum verbose output  (Gordon Shannon <gordo169@gmail.com>)
Список pgsql-general
Gordon Shannon <gordo169@gmail.com> writes:
> Hi,  Running 8.4.4 on Centos.  A couple of these numbers don't make sense to
> me.
> (I added line numbers for reference)

> 11 INFO:  "authors_archive": found 16558 removable, 7300 nonremovable row
> versions in 492 out of 51958 pages

The key point here is that vacuum only looked at 492 out of the 51958
pages in the table; those rowcounts are relevant to just that subset of
the table.  This is a new thing in 8.4 --- before, vacuum always had to
scan the entire table.  There's now bookkeeping that lets it figure out
which pages might contain vacuumable tuples, so it doesn't have to visit
every one.  The only real downside is that this message doesn't tell the
whole truth :-(

(IIRC there isn't yet any comparable optimization on indexes, so the
reports about the indexes still reflect everything in the table.)

            regards, tom lane

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Relation raltion_name with OID ##### no longer exists
Следующее
От: LaughingNinja
Дата:
Сообщение: Versatile Software Developer needed in Los Angeles area...