| From: | Bharath Rupireddy <bharath(dot)rupireddyforpostgres(at)gmail(dot)com> |
|---|---|
| To: | PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org> |
| Subject: | Parallel autovacuum: honor reduced parallel workers after heap scan phase |
| Date: | 2026-10-14 03:15:00 |
| Message-ID: | CALj2ACWABoFEcnsXaFbNpLB+abwvP6WZjtdYTacrx2cUoBNKEg@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
Hi,
I noticed that we don't honor a reduced number of parallel workers for
parallel autovacuum. This means a lowered
autovacuum_max_parallel_workers can't take effect after a long heap
scan phase on a table of hundreds of GBs or even TBs. Note that we can
only downsize, upsizing is not possible because the DSM is sized in
parallel_vacuum_init() before the heap scan phase of the vacuum.
Please find the attached patch fixing this.
Thoughts?
--
Bharath Rupireddy
Amazon Web Services: https://aws.amazon.com
| Attachment | Content-Type | Size |
|---|---|---|
| v1-0001-Honor-reduced-workers-after-heap-scan-phase-for-p.patch | application/octet-stream | 2.9 KB |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Richard Guo | 2026-10-14 03:19:07 | Re: Wrong results from an antijoin |
| Previous Message | Michael Paquier | 2026-10-14 03:14:28 | Re: [PATCH] Clear walsender reader pointers after cleanup |