pgsql: Use streaming read I/O in VACUUM's first phase

From: Melanie Plageman <melanieplageman(at)gmail(dot)com>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Use streaming read I/O in VACUUM's first phase
Date: 2025-02-14 17:59:17
Message-ID: E1tizy9-0077X8-H5@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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(dot)mshk(at)gmail(dot)com>
Reviewed-by: Thomas Munro <thomas(dot)munro(at)gmail(dot)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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Melanie Plageman 2025-02-14 18:31:42 Re: pgsql: Use streaming read I/O in VACUUM's third phase
Previous Message Nathan Bossart 2025-02-14 16:45:31 pgsql: Describe special values in GUC descriptions more consistently.