Re: [BUG]"FailedAssertion" reported in lazy_scan_heap() when running logical replication - Mailing list pgsql-hackers

From Dilip Kumar
Subject Re: [BUG]"FailedAssertion" reported in lazy_scan_heap() when running logical replication
Date
Msg-id CAFiTN-tvdtKCKZ2BV72gTePS-fWZUhOzbN-OOCMNUwbfya99FQ@mail.gmail.com
Whole thread Raw
In response to Re: [BUG]"FailedAssertion" reported in lazy_scan_heap() when running logical replication  (Masahiko Sawada <sawada.mshk@gmail.com>)
List 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 by date:

Previous
From: Amit Kapila
Date:
Subject: Re: [bug?] Missed parallel safety checks, and wrong parallel safety
Next
From: vignesh C
Date:
Subject: Re: Identify missing publications from publisher while create/alter subscription.