Use streaming read I/O in VACUUM's first phase Make vacuum's first phase, which prunes and freezes tuples and records dead TIDs, use the read stream API by by converting heap_vac_scan_next_block() to a read stream callback.
Reviewed-by: Masahiko Sawada <sawada.m...@gmail.com> Reviewed-by: Thomas Munro <thomas.mu...@gmail.com> Discussion: https://postgr.es/m/CAAKRu_aLwANZpxHc0tC-6OT0OQT4TftDGkKAO5yigMUOv_Tcsw%40mail.gmail.com Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/9256822608f3b0636cfd88c3436cdceda7003cf3 Modified Files -------------- src/backend/access/heap/vacuumlazy.c | 152 ++++++++++++++++++++++------------- 1 file changed, 94 insertions(+), 58 deletions(-)