Re: Autovacuum deadlock - bug or not? - Mailing list pgsql-bugs

From Mikael Carneholm
Subject Re: Autovacuum deadlock - bug or not?
Date
Msg-id 7F10D26ECFA1FB458B89C5B4B0D72C2B0A01E1@sesrv12.wirelesscar.com
Whole thread Raw
In response to Autovacuum deadlock - bug or not?  ("Mikael Carneholm" <Mikael.Carneholm@WirelessCar.com>)
Responses Re: Autovacuum deadlock - bug or not?  (Tom Lane <tgl@sss.pgh.pa.us>)
List 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 pgs=
ql-bugs list :)

/Mikael



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


"Mikael Carneholm" <Mikael.Carneholm@WirelessCar.com> writes:
> Don't know if this is a bug or just undocumented, but it seems as you sho=
uld turn off autovacuum before you run CLUSTER, otherwise you might run int=
o 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

pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: Autovacuum deadlock - bug or not?
Next
From: Tom Lane
Date:
Subject: Re: Autovacuum deadlock - bug or not?