Re: Vaccum Stalling - Mailing list pgsql-general

From Tom Lane
Subject Re: Vaccum Stalling
Date
Msg-id 19904.1184080669@sss.pgh.pa.us
Whole thread Raw
In response to Vaccum Stalling  (Brad Nicholson <bnichols@ca.afilias.info>)
List pgsql-general
Brad Nicholson <bnichols@ca.afilias.info> writes:
> Scenario - a large table was not being vacuumed correctly, there now ~
> 15 million dead tuples that account for approximately 20%-25% of the
> table.  Vacuum appears to be stalling - ran for approximately 10 hours
> before I killed it.  I hooked up to the process with gdb and this looks
> a bit suspicious to me.

Looks perfectly normal to me.  Reads in btbulkdelete are exactly where
I'd expect 7.4's vacuum to be spending the bulk of its wait time on a
large table, because that's a logical-order traversal of the index, and
cannot benefit from any sequential-access advantage.  (As of 8.2 we
are able to do this with a physical-order traversal, which can be a
whole lot faster.)

If you can afford to lock the table against writes for awhile,
reindexing might help by bringing the index back into physical order.

            regards, tom lane

pgsql-general by date:

Previous
From: Kevin martins
Date:
Subject: Problems with linkage
Next
From: Brad Nicholson
Date:
Subject: Re: Vaccum Stalling