Re: A few new options for CHECKPOINT

Поиск
Список
Период
Сортировка
От Bossart, Nathan
Тема Re: A few new options for CHECKPOINT
Дата
Msg-id 95792933-8418-41F3-A2FA-327A0E4F45B1@amazon.com
обсуждение исходный текст
Ответ на RE: A few new options for CHECKPOINT  ("tsunakawa.takay@fujitsu.com" <tsunakawa.takay@fujitsu.com>)
Ответы RE: A few new options for CHECKPOINT
Re: A few new options for CHECKPOINT
Список pgsql-hackers
On 11/24/20, 4:03 PM, "tsunakawa.takay@fujitsu.com" <tsunakawa.takay@fujitsu.com> wrote:
> From: Bossart, Nathan <bossartn@amazon.com>
>> 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.
>
> I think just IMMEDIATE would suffice, too.  But could you tell us why you got to want to give users more control?
Couldwe know concrete example situations where users want to perform CHECKPOINT with options?
 

It may be useful for backups taken with the "consistent snapshot"
approach.  As noted in the documentation [0], running CHECKPOINT
before taking the snapshot can reduce recovery time.  However, users
might wish to avoid the IO spike caused by an immediate checkpoint.

Nathan

[0] https://www.postgresql.org/docs/devel/backup-file.html


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

Предыдущее
От: "tsunakawa.takay@fujitsu.com"
Дата:
Сообщение: RE: [PoC] Non-volatile WAL buffer
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Libpq support to connect to standby server as priority