Re: Allow async standbys wait for sync replication

Поиск
Список
Период
Сортировка
От Nathan Bossart
Тема Re: Allow async standbys wait for sync replication
Дата
Msg-id 20220301170537.GA1031413@nathanxps13
обсуждение исходный текст
Ответ на Re: Allow async standbys wait for sync replication  (Kyotaro Horiguchi <horikyota.ntt@gmail.com>)
Список pgsql-hackers
On Tue, Mar 01, 2022 at 04:34:31PM +0900, Kyotaro Horiguchi wrote:
> At Mon, 28 Feb 2022 22:05:28 -0800, Nathan Bossart <nathandbossart@gmail.com> wrote in 
>> replicated LSN.  TBH there are probably other things that need to be
>> considered (e.g., how do we ensure that the WAL sender sends the rest once
>> it is replicated?), but I still think we should avoid spinning in the WAL
>> sender waiting for WAL to be replicated.
> 
> It seems to me it would be something similar to
> SyncRepReleaseWaiters().  Or it could be possible to consolidate this
> feature into the function, I'm not sure, though.

Yes, perhaps the synchronous replication framework will need to alert WAL
senders when the syncrep LSN advances so that the WAL is sent to the async
standbys.  I'm glossing over the details, but I think that should be the
general direction.

-- 
Nathan Bossart
Amazon Web Services: https://aws.amazon.com



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

Предыдущее
От: Christoph Heiss
Дата:
Сообщение: Re: [PATCH] Add reloption for views to enable RLS
Следующее
От: Brar Piening
Дата:
Сообщение: Re: Add id's to various elements in protocol.sgml