This is a discussion on Autovacuum deadlock - bug or not? within the pgsql Bugs forums, part of the PostgreSQL category; --> Don't know if this is a bug or just undocumented, but it seems as you should turn off autovacuum ...
| |||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| 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: NOTICE: Clustering idx_vehicle_unit_data_200407_person_information__i d on vehicle_unit_data_200407 ERROR: deadlock detected DETAIL: Process 29022 waits for AccessExclusiveLock on relation 68950 of database 16390; blocked by process 15865. Process 15865 waits for AccessShareLock on relation 68122 of database 16390; blocked by process 29022. /Mikael ---------------------------(end of broadcast)--------------------------- TIP 1: if posting/reading through Usenet, please send an appropriate subscribe-nomail command to majordomo@postgresql.org so that your message can get through to the mailing list cleanly |
| ||||
| "Mikael Carneholm" <Mikael.Carneholm@WirelessCar.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 ---------------------------(end of broadcast)--------------------------- TIP 9: In versions below 8.0, the planner will ignore your desire to choose an index scan if your joining column's datatypes do not match |