Re: what could cause inserts getting queued up and db locking??

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: what could cause inserts getting queued up and db locking??
Дата
Msg-id 2442.1098978471@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: what could cause inserts getting queued up and db locking??  ("Brian Maguire" <bmaguire@vantage.com>)
Список pgsql-general
"Brian Maguire" <bmaguire@vantage.com> writes:
> What are the implications to further increasing the checkpoint so say
> 40?

AFAIK the downsides are (a) more disk space eaten for pg_xlog,
(b) if you suffer a crash, it will take longer to recover (because
there'll be more uncheckpointed work to replay); (c) the checkpoint
itself could require more I/O because there's more pending write
activity.

> Also how does 8.0's background-writer feature work and what are going to
> benefits?

The idea of the bgwriter is to trickle out disk writes continuously
instead of having a big write storm at each checkpoint.

            regards, tom lane

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

Предыдущее
От: "Brian Maguire"
Дата:
Сообщение: Re: what could cause inserts getting queued up and db locking??
Следующее
От: "Tim Vadnais"
Дата:
Сообщение: field incrementing in a PL/pgSQL trigger