Re: BUG #2568: Vacuum locks tables and do nothing - Mailing list pgsql-bugs

From Tom Lane
Subject Re: BUG #2568: Vacuum locks tables and do nothing
Date
Msg-id 14747.1155089143@sss.pgh.pa.us
Whole thread Raw
In response to BUG #2568: Vacuum locks tables and do nothing  ("Jaroslav Prodelal" <slavek@pearshealthcyber.com>)
List pgsql-bugs
"Jaroslav Prodelal" <slavek@pearshealthcyber.com> 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

pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: BUG #2565: pg tool doesn't detect window size changes
Next
From: Jim Nasby
Date:
Subject: Re: BUG #2555: runtime error 80040e21