Re: [PATCH] Use maintenance_io_concurrency for parallel index builds - Mailing list pgsql-hackers

From Jingtang Zhang
Subject Re: [PATCH] Use maintenance_io_concurrency for parallel index builds
Date
Msg-id CAPsk3_AfS4wKS2yOkOYOanX57xA7+JtR8vDBF3dXncs5zgJ3cA@mail.gmail.com
Whole thread
List pgsql-hackers
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

pgsql-hackers by date:

Previous
From: Diego
Date:
Subject: Re: [PATCH] libpq: Add PQpassfileLookup()
Next
From: solai v
Date:
Subject: Re: Include sequences in publications created by pg_createsubscriber