Re: Blocking excessively in FOR UPDATE

Поиск
Список
Период
Сортировка
От Robert Haas
Тема Re: Blocking excessively in FOR UPDATE
Дата
Msg-id CA+TgmoZ3n5a5kKvO6cFwUEa5eBQWK=s8nvy_-86eP82nFv8Eig@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Blocking excessively in FOR UPDATE  (Claudio Freire <klaussfreire@gmail.com>)
Список pgsql-performance
On Fri, Nov 4, 2011 at 12:07 PM, Claudio Freire <klaussfreire@gmail.com> wrote:
> What are those writes about? HOT vacuuming perhaps?

Every tuple lock requires dirtying the page.  Those writes are all
those dirty pages getting flushed out to disk.  It's possible that the
OS is allowing the writes to happen asynchronously for a while, but
then when you get too much dirty data in the cache, it starts
blocking.

The only thing I'm fuzzy about is why it's locking so many rows, given
that the output says rows=1.

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

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

Предыдущее
От: Claudio Freire
Дата:
Сообщение: Re: Blocking excessively in FOR UPDATE
Следующее
От: "Sorbara, Giorgio (CIOK)"
Дата:
Сообщение: Re: Strange query plan