Re: Make use of assign_checkpoint_completion_target() to calculate CheckPointSegments correctly

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Re: Make use of assign_checkpoint_completion_target() to calculate CheckPointSegments correctly
Дата
Msg-id Y8ZHyQWmYMAsDcQ1@paquier.xyz
обсуждение исходный текст
Ответ на Make use of assign_checkpoint_completion_target() to calculate CheckPointSegments correctly  (Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>)
Ответы Re: Make use of assign_checkpoint_completion_target() to calculate CheckPointSegments correctly
Список pgsql-hackers
On Mon, Dec 26, 2022 at 06:12:34PM +0530, Bharath Rupireddy wrote:
> It looks like assign_checkpoint_completion_target() is defined [1],
> but never used, because of which CheckPointSegments may miss to
> account for changed checkpoint_completion_target. I'm attaching a tiny
> patch to fix this.
>
> Thoughts?

Oops.  It looks like you are right here.  This would impact the
calculation of CheckPointSegments on reload when
checkpoint_completion_target is updated.  This is wrong since we've
switched to max_wal_size as of 88e9823, so this had better be
backpatched all the way down.

Thoughts?
--
Michael

Вложения

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

Предыдущее
От: Masahiko Sawada
Дата:
Сообщение: Re: Perform streaming logical transactions by background workers and parallel apply
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Add proper planner support for ORDER BY / DISTINCT aggregates