Re: pgsql: Reduce checkpoints and WAL traffic on low activity database serv

Поиск
Список
Период
Сортировка
От Simon Riggs
Тема Re: pgsql: Reduce checkpoints and WAL traffic on low activity database serv
Дата
Msg-id CA+U5nMLrxJQJO0Yz6ATUJVGC5FHu1F1Er5TDRhy6D5heqHKN6A@mail.gmail.com
обсуждение исходный текст
Ответ на Re: pgsql: Reduce checkpoints and WAL traffic on low activity database serv  (Robert Haas <robertmhaas@gmail.com>)
Список pgsql-committers
On Wed, Nov 2, 2011 at 4:15 PM, Robert Haas <robertmhaas@gmail.com> wrote:
> On Wed, Nov 2, 2011 at 11:39 AM, Simon Riggs <simon@2ndquadrant.com> wrote:
>> Reduce checkpoints and WAL traffic on low activity database server
>> Previously, we skipped a checkpoint if no WAL had been written since
>> last checkpoint, though this does not appear in user documentation.
>> As of now, we skip a checkpoint until we have written at least one
>> enough WAL to switch the next WAL file. This greatly reduces the
>> level of activity and number of WAL messages generated by a very
>> low activity server. This is safe because the purpose of a checkpoint
>> is to act as a starting place for a recovery, in case of crash.
>> This patch maintains minimal WAL volume for replay in case of crash,
>> thus maintaining very low crash recovery time.
>
> I think you need to update the docs, for checkpoint_timeout if nothing else.

Checkpoints have always been skipped, if no activity. So the docs
don't need changing.

--
 Simon Riggs                   http://www.2ndQuadrant.com/
 PostgreSQL Development, 24x7 Support, Training & Services

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

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: pgsql: Reduce checkpoints and WAL traffic on low activity database serv
Следующее
От: Simon Riggs
Дата:
Сообщение: pgsql: Update more comments about checkpoints being done by bgwriter