"Jaroslav Prodelal" <[EMAIL PROTECTED]> writes: > When vacuum starts vacuuming problematic table, it locks table and > although, I can't see any load on the server even on disk, cpu or memory, > table is lock and other processes can't access it. I have also tried strace > on VACUUM process, but there wasn't any activity on it.
It sounds to me like vacuum is blocked waiting for some other process's lock --- and then other processes queue up behind vacuum's request, but that doesn't make it vacuum's fault. Try looking in pg_locks to see which process actually has a granted lock on that table. 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