Re: vacuum analyse waiting - Mailing list pgsql-admin

From hubert depesz lubaczewski
Subject Re: vacuum analyse waiting
Date
Msg-id 20160321153537.GA14547@depesz.com
Whole thread Raw
In response to Re: vacuum analyse waiting  (Nicolas Aubert <aubertnicolas11@gmail.com>)
List pgsql-admin
On Mon, Mar 21, 2016 at 04:26:40PM +0100, Nicolas Aubert wrote:
> the vacuum process is the 22510
> here is what I found in pg_locks
>
>
> virtualtransaction |  pid  |           mode           | granted | fastpath
>
------------+---------------+---------+-------+----------+--------------------+-------+--------------------------+---------+----------
>
> 3/376480           | 22510 | ExclusiveLock            | t       |
>             |               |         |       |          |
> 3/376480           | 22510 | ShareUpdateExclusiveLock | f       | f
>

I'm sure there are more columns in pg_locks.

What you need to find is the rows with pid of vacuum, that have granted
= 'false', and see what the lock is on (the columns you ignored).

Then you check what has conflicting locks on the required things.

Best regards,

depesz



pgsql-admin by date:

Previous
From: Nicolas Aubert
Date:
Subject: Re: vacuum analyse waiting
Next
From: bricklen
Date:
Subject: Re: vacuum analyse waiting