Re: Autovacuum deadlock - bug or not?

From: "Mikael Carneholm" <Mikael(dot)Carneholm(at)WirelessCar(dot)com>
To: "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: <pgsql-bugs(at)postgresql(dot)org>
Subject: Re: Autovacuum deadlock - bug or not?
Date: 2005-11-17 14:59:08
Message-ID: 7F10D26ECFA1FB458B89C5B4B0D72C2B0A01E1@sesrv12.wirelesscar.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

variant: CLUSTER indexname ON tablename

Maybe there should be something about this in the docs, so that users don't get surprised when this happens and start sending stupid emails to the pgsql-bugs list :)

/Mikael

-----Original Message-----
From: Tom Lane [mailto:tgl(at)sss(dot)pgh(dot)pa(dot)us]
Sent: den 17 november 2005 15:51
To: Mikael Carneholm
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: [BUGS] Autovacuum deadlock - bug or not?

"Mikael Carneholm" <Mikael(dot)Carneholm(at)WirelessCar(dot)com> writes:
> Don't know if this is a bug or just undocumented, but it seems as you should turn off autovacuum before you run CLUSTER, otherwise you might run into a deadlock:

Which variant of CLUSTER were you using? ISTR that some of them lock
the index before the table, which is prone to deadlock against nearly
all other operations on the table (not just vacuum).

regards, tom lane

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2005-11-17 15:03:55 Re: Autovacuum deadlock - bug or not?
Previous Message Tom Lane 2005-11-17 14:51:10 Re: Autovacuum deadlock - bug or not?