Remove overzealous VACUUM visibility map assertion.
authorPeter Geoghegan <pg@bowt.ie>
Thu, 6 May 2021 20:17:39 +0000 (13:17 -0700)
committerPeter Geoghegan <pg@bowt.ie>
Thu, 6 May 2021 20:17:39 +0000 (13:17 -0700)
commitc9787385db47ba423d845b34d58e158551c6335d
tree82a453448e00f576dc9efcfbb9d38b477ee0cf21
parent3fe773b149755977d2ffde2afd89557b39d0afd9
Remove overzealous VACUUM visibility map assertion.

The all_visible_according_to_vm variable's value is inherently prone to
becoming invalidated concurrently, since it is set before we even
acquire a lock on a related heap page buffer.

Oversight in commit 7136bf34, which added the assertion in passing.

Author: Masahiko Sawada <sawada.mshk@gmail.com>
Reported-By: Tang <tanghy.fnst@fujitsu.com>
Diagnosed-By:: Masahiko Sawada <sawada.mshk@gmail.com>
Discussion: https://postgr.es/m/CAD21AoDzgc8_MYrA5m1fyydomw_eVKtQiYh7sfDK4KEhdMsf_g@mail.gmail.com
src/backend/access/heap/vacuumlazy.c