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

From: "Kevin Grittner" <kgrittn(at)mail(dot)com>
To: "Baptiste LHOSTE" <blhoste(at)alaloop(dot)com>,pgsql-admin(at)postgresql(dot)org
Subject: Re: Autovacuum issues with truncate and create index ...
Date: 2012-12-20 15:04:30
Message-ID: 20121220150431.14740@gmx.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Baptiste LHOSTE wrote:

>  - finally we delete old data of the second kind of tables

> Then the autovacuum process starts to work on the second kind of
> tables, but our process blocks into step 3 (truncate) or step 5
> (create index).
>
> As soon as I reset the autovacuum thresholds for the second kind
> of tables, our process run again perfectly.
>
> Can our process could create deadlock with the autovacuum
> process ?

Would it be possible for you to create such a situation and capture
the contents of pg_stat_activity and pg_locks while it is going on?
What messages related to autovacuum or deadlocks do you see in the
server log while this is going on?

>  PostgreSQL 8.4.11

Would it be possible to update your 8.4 installation to the latest
bug fix (currently 8.4.15) to rule out the influence of any bugs
which have already been fixed?

-Kevin

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Gary Stainburn 2012-12-20 15:22:36 Re: create role?
Previous Message Ray Stell 2012-12-20 14:57:31 Re: create role?