Re: Blocking excessively in FOR UPDATE

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Blocking excessively in FOR UPDATE
Дата
Msg-id 19908.1320363946@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Blocking excessively in FOR UPDATE  (Claudio Freire <klaussfreire@gmail.com>)
Ответы Re: Blocking excessively in FOR UPDATE  (Claudio Freire <klaussfreire@gmail.com>)
Список pgsql-performance
Claudio Freire <klaussfreire@gmail.com> writes:
> On Thu, Nov 3, 2011 at 4:29 PM, Claudio Freire <klaussfreire@gmail.com> wrote:
>> Next time I find it blocking, I will check pg_locks directly and post
>> the output.

> Here it is, two instances of the query, while blocked:

Hmm ... definitely seems that you're not blocked on a FOR UPDATE tuple
lock.  If you were, there'd be an ungranted ShareLock on a transactionid
in there.

It seems possible that you're blocked on an LWLock, which would not show
in pg_locks.  But before pursuing that idea, probably first you should
back up and confirm whether the process is actually waiting, or running,
or just really slow due to CPU contention.  It might be useful to see
what strace has to say about it.

            regards, tom lane

В списке pgsql-performance по дате отправления:

Предыдущее
От: CS DBA
Дата:
Сообщение: Re: function slower than the same code in an sql file
Следующее
От: "Albe Laurenz"
Дата:
Сообщение: Re: SSL encryption makes bytea transfer slow