Re: [BUG]"FailedAssertion" reported in lazy_scan_heap() when running logical replication

Поиск
Список
Период
Сортировка
От Dilip Kumar
Тема Re: [BUG]"FailedAssertion" reported in lazy_scan_heap() when running logical replication
Дата
Msg-id CAFiTN-tvdtKCKZ2BV72gTePS-fWZUhOzbN-OOCMNUwbfya99FQ@mail.gmail.com
обсуждение исходный текст
Ответ на Re: [BUG]"FailedAssertion" reported in lazy_scan_heap() when running logical replication  (Masahiko Sawada <sawada.mshk@gmail.com>)
Список pgsql-hackers
On Thu, May 6, 2021 at 6:11 PM Masahiko Sawada <sawada.mshk@gmail.com> wrote:
> Since we set all_visible_according_to_vm before acquiring the buffer
> lock it's likely to happen that the page gets modified and all-visible
> bit is cleared after setting true to all_visible_according_to_vm. This
> assertion can easily be reproduced by adding a delay before the buffer
> lock and invoking autovacuums frequently:
>

Your analysis seems correct to me that before we acquire the page the
someone can modify it.  So this assertion is not correct.

-- 
Regards,
Dilip Kumar
EnterpriseDB: http://www.enterprisedb.com



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

Предыдущее
От: Amit Kapila
Дата:
Сообщение: Re: [bug?] Missed parallel safety checks, and wrong parallel safety
Следующее
От: vignesh C
Дата:
Сообщение: Re: Identify missing publications from publisher while create/alter subscription.