Re: pgsql: Reduce scope of heap vacuum per_buffer_data

2025-02-18 Thread Melanie Plageman
On Tue, Feb 18, 2025 at 9:30 AM Melanie Plageman wrote: > > Reduce scope of heap vacuum per_buffer_data > > Move lazy_scan_heap()'s per_buffer_data variable into a tighter scope. > In lazy_scan_heap()'s phase I heap vacuuming, the read stream API > returns a pointer to the next block number to vac

pgsql: Reduce scope of heap vacuum per_buffer_data

2025-02-18 Thread Melanie Plageman
Reduce scope of heap vacuum per_buffer_data Move lazy_scan_heap()'s per_buffer_data variable into a tighter scope. In lazy_scan_heap()'s phase I heap vacuuming, the read stream API returns a pointer to the next block number to vacuum. As long as read_stream_next_buffer() returns a valid buffer, pe