Fix pg_visibility regression failure with CLOBBER_CACHE_ALWAYS
authorTomas Vondra <[email protected]>
Tue, 8 Jun 2021 17:24:27 +0000 (19:24 +0200)
committerTomas Vondra <[email protected]>
Tue, 8 Jun 2021 17:33:11 +0000 (19:33 +0200)
commitd1f0aa7696917213485c03b076b573497a535076
treea867496ac9b072ca5bf5f6924a3ab00314c84426
parentbfeede9fa464ab707eb5ac5704742bf78bd7ac9e
Fix pg_visibility regression failure with CLOBBER_CACHE_ALWAYS

Commit 8e03eb92e9 reverted a bit too much code, reintroducing one of the
issues fixed by 39b66a91bd - a page might have been left partially empty
after relcache invalidation.

Reported-By: Tom Lane
Author: Masahiko Sawada
Discussion: https://postgr.es/m/822752.1623032114@sss.pgh.pa.us
Discussion: https://postgr.es/m/CAD21AoA%3D%3Df2VSw3c-Cp_y%3DWLKHMKc1D6s7g3YWsCOvgaYPpJcg%40mail.gmail.com
src/backend/access/heap/hio.c