Re: Problem with VACUUM after very large delete? - Mailing list pgsql-general

From Tom Lane
Subject Re: Problem with VACUUM after very large delete?
Date
Msg-id 17547.1040167956@sss.pgh.pa.us
Whole thread Raw
In response to Problem with VACUUM after very large delete?  (Doug Fields <dfields-pg-general@pexicom.com>)
List pgsql-general
Doug Fields <dfields-pg-general@pexicom.com> writes:
> Earlier today I deleted about 31 million records from one of our tables
> with a very complex query which required a full table scan. This query took
> quite a few hours to run (in fact, overnight).

> Why? The VACUUM doesn't seem to be vacuuming the two indexes on the table.

Have you got any open transactions hanging about?  VACUUM probably
thinks it can't remove the tuples yet because they're still potentially
visible to somebody under MVCC rules.

            regards, tom lane

pgsql-general by date:

Previous
From: Doug Fields
Date:
Subject: Re: Problem with VACUUM after very large delete?
Next
From: Luke Van
Date:
Subject: test--please disregard