Re: Slow standby snapshot

Поиск
Список
Период
Сортировка
От Andrey Borodin
Тема Re: Slow standby snapshot
Дата
Msg-id F6FA8064-9681-41FC-9E9E-FB9337AE982F@yandex-team.ru
обсуждение исходный текст
Ответ на Re: Slow standby snapshot  (Simon Riggs <simon.riggs@enterprisedb.com>)
Ответы Re: Slow standby snapshot  (Simon Riggs <simon.riggs@enterprisedb.com>)
Список pgsql-hackers

> On 29 Jul 2022, at 20:08, Simon Riggs <simon.riggs@enterprisedb.com> wrote:
>
> A simple patch like this seems to hit the main concern, aiming to keep
> the array from spreading out and impacting snapshot performance for
> SELECTs, yet not doing it so often that the startup process has a
> higher burden of work.

The idea to compress more often seem viable. But this might make some other workloads pathological.
Some KnownAssignedXids routines now can become quadratic in case of lots of subtransactions.

KnownAssignedXidsRemoveTree() only compress with probability 1/8, but it is still O(N*N).

IMO original patch (with next pointer) is much safer in terms of unexpected performance degradation.

Thanks!

Best regards, Andrey Borodin.


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

Предыдущее
От: Junwang Zhao
Дата:
Сообщение: [PATCH] Add a inline function to eliminate duplicate code
Следующее
От: "houzj.fnst@fujitsu.com"
Дата:
Сообщение: RE: Perform streaming logical transactions by background workers and parallel apply