A few new options for CHECKPOINT

Поиск
Список
Период
Сортировка
От Bossart, Nathan
Тема A few new options for CHECKPOINT
Дата
Msg-id 17A03557-CF5C-4D4B-B719-A1D98DD75E75@amazon.com
обсуждение исходный текст
Ответы RE: A few new options for CHECKPOINT
Список pgsql-hackers
Hi hackers,

I've attached a patch to add a few new options to CHECKPOINT that
might be useful.  Specifically, it adds the FORCE, IMMEDIATE, and WAIT
options.  All of these options are already implemented internally, but
it is not possible to adjust them for manually triggered checkpoints.
The bulk of this change is dedicated to expanding the syntax of
CHECKPOINT and adding detailed documentation.

I've mostly followed the pattern set forth by the options recently
added to VACUUM.  With this patch, CHECKPOINT takes an optional set of
parameters surround by parentheses.  The new parameters are enabled by
default but can be disabled by specifying FALSE, OFF, or 0.

The main purpose of this patch is to give users more control over
their manually requested checkpoints or restartpoints.  I suspect the
most useful option is IMMEDIATE, which can help avoid checkpoint-
related IO spikes.  However, I didn't see any strong reason to prevent
users from also adjusting FORCE and WAIT.

Nathan


Вложения

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

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: remove spurious CREATE INDEX CONCURRENTLY wait
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: Libpq support to connect to standby server as priority