Re: walsender performance regression due to logical decoding on standby changes

Поиск
Список
Период
Сортировка
От Andres Freund
Тема Re: walsender performance regression due to logical decoding on standby changes
Дата
Msg-id 20230509210024.4lfcb2wzrcijzaba@awork3.anarazel.de
обсуждение исходный текст
Ответ на Re: walsender performance regression due to logical decoding on standby changes  (Jeff Davis <pgsql@j-davis.com>)
Ответы Re: walsender performance regression due to logical decoding on standby changes  ("Drouvot, Bertrand" <bertranddrouvot.pg@gmail.com>)
Список pgsql-hackers
Hi,

On 2023-05-09 13:38:24 -0700, Jeff Davis wrote:
> On Tue, 2023-05-09 at 12:02 -0700, Andres Freund wrote:
> > I don't think the approach of not having any sort of "registry" of
> > whether
> > anybody is waiting for the replay position to be updated is
> > feasible. Iterating over all walsenders slots is just too expensive -
> 
> Would it work to use a shared counter for the waiters (or, two
> counters, one for physical and one for logical), and just early exit if
> the count is zero?

That doesn't really fix the problem - once you have a single walsender
connected, performance is bad again.

Greetings,

Andres Freund



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

Предыдущее
От: Andres Freund
Дата:
Сообщение: Re: Feature: Add reloption support for table access method
Следующее
От: Stephen Frost
Дата:
Сообщение: Re: Large files for relations