Re: Synchronizing slots from primary to standby

Поиск
Список
Период
Сортировка
От Ajin Cherian
Тема Re: Synchronizing slots from primary to standby
Дата
Msg-id CAFPTHDa5C_vHQbeqemToyucWySB0kEFbdS2WOA0PB+GSei2v7A@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Synchronizing slots from primary to standby  (shveta malik <shveta.malik@gmail.com>)
Список pgsql-hackers
On Mon, Nov 13, 2023 at 5:38 PM shveta malik <shveta.malik@gmail.com> wrote:
> Okay. Thanks for testing Ajin. I think it needs a fix wherein we set
> the local-slot's invalidation status (provided it is not invalidated
> already) from the remote slot before this check itself. And if the
> slot is invalidated locally (either by itself) or by primary_slot
> being invalidated, then we should skip the sync. I will fix this in
> the next version.

Yes, that works.
Another bug I see in my testing is that
pg_get_slot_invalidation_cause() does not release the LOCK if it finds
the slot it is searching for.

regards,
Ajin Cherian
Fujitsu Australia



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

Предыдущее
От: Bharath Rupireddy
Дата:
Сообщение: Re: Add new option 'all' to pg_stat_reset_shared()
Следующее
От: yuansong
Дата:
Сообщение: Re:Re: How to solve the problem of one backend process crashing and causing other processes to restart?