Re: Something Weird Going on with VACUUM ANALYZE

From: Kevin Grittner <kgrittn(at)ymail(dot)com>
To: "sthomas(at)optionshouse(dot)com" <sthomas(at)optionshouse(dot)com>, Jeff Janes <jeff(dot)janes(at)gmail(dot)com>
Cc: PostgreSQL General <pgsql-general(at)postgresql(dot)org>
Subject: Re: Something Weird Going on with VACUUM ANALYZE
Date: 2013-09-19 13:42:15
Message-ID: 1379598135.50229.YahooMailNeo@web162905.mail.bf1.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Shaun Thomas <sthomas(at)optionshouse(dot)com> wrote:

> The first line also seems extremely misleading. a manually
> launched vacuum is not an autovacuum, so why is it complaining
> about an autovacuum? Shouldn't the PID doing the autovacuum emit
> the log message? This all seems a little sketchy.

The table truncation in autovacuum had severe problems in some
conditions which were causing production down time.  The fix
accidentally introduced some messages which are confusing, and
caused the statistics from autovacuum to fail to be generated more
often than had previously been the case.  These problems should be
fixed in the next minor release.  Until then, if you have a
workload which triggers these issues, the workaround is to schedule
ANALYZE jobs.

Where things are now running faster, it's hard to say how much is
from missing the analyze step, how much is due to caching issues,
and how much is actual gain from the fixes for the original
problems.

--
Kevin Grittner
EDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Shaun Thomas 2013-09-19 13:47:39 Re: Something Weird Going on with VACUUM ANALYZE
Previous Message David Johnston 2013-09-19 13:34:48 Re: How to evaluate if a query is correct?