Re: Autovacuum issues with truncate and create index ...

From: Baptiste LHOSTE <blhoste(at)alaloop(dot)com>
To: Kevin Grittner <kgrittn(at)mail(dot)com>
Cc: pgsql-admin(at)postgresql(dot)org, Sylvain CAILLET <scaillet(at)alaloop(dot)com>
Subject: Re: Autovacuum issues with truncate and create index ...
Date: 2012-12-20 17:08:43
Message-ID: 74151148.2709769.1356023323230.JavaMail.root@alaloop.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin


> Was the blocking you described occurring at the time you captured
> this? It doesn't seem to be showing any problem.

Yes indeed. We have noticed that any process seems to be in waiting situation but :
- before the autovacuum process starts to work on the both kind of tables, truncate and index creation take less than 2 seconds
- after the autovacuum process starts to work on the both kind of tables, truncate and index creation never end

We have to stop our process, then reset the autovacuum thresold for second kind of tables, then restart our process.

Is it possible that the fact that statistics of postgresql are not up-to-date could explain this behavior ?
Is it possible that the autovacuum process does not stop itself when we perform a truncate or a create index ?

> A minor release (where the version number doesn't change before the
> second dot) never requires a dump and restore. There is sometimes a
> need to do some cleanup work; for example, if a bug is fixed which
> could corrupt a particular type of index, the release notes may
> recommend rebuilding all indexes of that type to repair any damage
> which may have occurred before the bug was fixed.

As we mention in the previous mail, we can only upgrade to the 8.4.13 with Debian.

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Ray Stell 2012-12-20 18:30:24 Re: create role?
Previous Message Kevin Grittner 2012-12-20 16:42:08 Re: Autovacuum issues with truncate and create index ...