Re: Need help understanding vacuum verbose output

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: Brad Nicholson <bnichols(at)ca(dot)afilias(dot)info>
Cc: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: Need help understanding vacuum verbose output
Date: 2010-08-06 16:11:13
Message-ID: 1281111029-sup-5835@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Excerpts from Brad Nicholson's message of vie ago 06 12:01:27 -0400 2010:
> On 10-08-06 11:45 AM, Gordon Shannon wrote:
> > OK, so if it knew that all vacuumable tuples could be found in 492 pages, and
> > it scanned only those pages, then how could it be that it reports 16558
> > removable tuples from those 492 pages, when it has already reported earlier
> > that it removed 45878 tuples -- a number we know in fact to be correct? How
> > could both statements be correct?
>
> It found 45878 dead tuples in 396 pages for the index authors_archive_pkey.
>
> It found 16558 dead tuples in 492 pages for the table authors_archive.

But why did it choose to skip the rest of the pages in authors_archive,
if there certainly are a lot of vacuumable tuples in (some of) them?

--
Álvaro Herrera <alvherre(at)commandprompt(dot)com>
The PostgreSQL Company - Command Prompt, Inc.
PostgreSQL Replication, Consulting, Custom Development, 24x7 support

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Gordon Shannon 2010-08-06 16:17:46 Re: Need help understanding vacuum verbose output
Previous Message Brad Nicholson 2010-08-06 16:01:27 Re: Need help understanding vacuum verbose output