Re: Need help understanding vacuum verbose output

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Gordon Shannon <gordo169(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Need help understanding vacuum verbose output
Date: 2010-08-05 22:00:59
Message-ID: 3332.1281045659@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Gordon Shannon <gordo169(at)gmail(dot)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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message LaughingNinja 2010-08-06 00:18:34 Versatile Software Developer needed in Los Angeles area...
Previous Message Tom Lane 2010-08-05 21:52:07 Re: Relation raltion_name with OID ##### no longer exists