On Thursday, April 29, 2021 1:22 PM, Peter Geoghegan <pg@bowt.ie> wrote
>Is setting all_visible_according_to_vm false as below enough to avoid
>the assertion failure?
>
>diff --git a/src/backend/access/heap/vacuumlazy.c
>b/src/backend/access/heap/vacuumlazy.c
>index c3fc12d76c..76c17e063e 100644
>--- a/src/backend/access/heap/vacuumlazy.c
>+++ b/src/backend/access/heap/vacuumlazy.c
>@@ -1146,6 +1146,7 @@ lazy_scan_heap(LVRelState *vacrel, VacuumParams
>*params, bool aggressive)
> {
> ReleaseBuffer(vmbuffer);
> vmbuffer = InvalidBuffer;
>+ all_visible_according_to_vm = false;
> }
>
> /* Remove the collected garbage tuples from table and indexes */
Thanks for your reply.
I tried your patch but the problem seems not be fixed.
Regards,
Tang