Revert most of 39b66a91bd

Tomas Vondra <tomas.vondra@postgresql.org>

Commit: 8e03eb92e9ad54e2f1ed8b5a73617601f6262f81
Author: Tomas Vondra <tomas.vondra@postgresql.org>
Date: 2021-06-02T22:13:59Z
Releases: 14.0
Revert most of 39b66a91bd

Reverts most of commit 39b66a91bd, which was found to cause significant
regression for REFRESH MATERIALIZED VIEW. This means only rows inserted
by heap_multi_insert will benefit from the optimization, implemented in
commit 7db0cd2145.

Reported-by: Masahiko Sawada
Discussion: https://postgr.es/m/CAD21AoA%3D%3Df2VSw3c-Cp_y%3DWLKHMKc1D6s7g3YWsCOvgaYPpJcg%40mail.gmail.com

Files

PathChange+/−
src/backend/access/heap/heapam.c modified +1 −73
src/backend/access/heap/hio.c modified +11 −11

Discussion