Hi,

> Actually, no extension is needed: table_beginscan_common() already
> accepts user_flags, so heapam_index_build_range_scan() can simply
> call it directly and pass SO_MAINTENANCE.
>
> BRIN's summarize_range() also goes through
> heapam_index_build_range_scan(), so fixing the serial path would
> switch it over. IMO, that counts as maintenance too.

Thanks for the review. Attached is v3, which also handles serial index
builds by calling table_beginscan_common() directly, as you suggested.
This covers BRIN range summarization too, without changing the API.

---
Regards,
Jingtang Zhang

Attachment: v3-index-maintenance-io.patch
Description: Binary data

Reply via email to