deadlock with vacuum full on 7.4.5

From: Joseph Shraibman <jks(at)selectacast(dot)net>
To: Postgres General <pgsql-general(at)postgresql(dot)org>
Subject: deadlock with vacuum full on 7.4.5
Date: 2004-10-12 21:52:06
Message-ID: 416C5206.2050506@selectacast.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

I have a table that is usually really small (currently 316 rows) but
goes through spasams of updates in a small time window. Therefore I
have a vacuum full run every hour on this table.

Last night one of these vacuum fulls deadlocked with a query on this
table. Both were stuck doing nothing until I did a kill -INT on the
backends doing the vacuum.

So my questions:
1) What can I do to avoid this?
2) What do I do next time this happens to get more debugging info out of
the situation?

My postgres version:

PostgreSQL 7.4.5 on i686-pc-linux-gnu, compiled by GCC gcc (GCC) 3.2.2
20030222 (Red Hat Linux 3.2.2-5)

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2004-10-12 22:27:44 Re: deadlock with vacuum full on 7.4.5
Previous Message Steven Klassen 2004-10-12 21:20:25 Re: How Do I Change The 'Owner' of a Database?