Re: vacuum analyse waiting

Поиск
Список
Период
Сортировка
От hubert depesz lubaczewski
Тема Re: vacuum analyse waiting
Дата
Msg-id 20160321153537.GA14547@depesz.com
обсуждение исходный текст
Ответ на Re: vacuum analyse waiting  (Nicolas Aubert <aubertnicolas11@gmail.com>)
Список 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 по дате отправления:

Предыдущее
От: Nicolas Aubert
Дата:
Сообщение: Re: vacuum analyse waiting
Следующее
От: bricklen
Дата:
Сообщение: Re: vacuum analyse waiting