On Thu, May 6, 2021 at 6:11 PM Masahiko Sawada <sawada.m...@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