| From: | Alexander Korotkov <aekorotkov(at)gmail(dot)com> |
|---|---|
| To: | Daniil Davydov <3danissimo(at)gmail(dot)com> |
| Cc: | Masahiko Sawada <sawada(dot)mshk(at)gmail(dot)com>, SATYANARAYANA NARLAPURAM <satyanarlapuram(at)gmail(dot)com>, Bharath Rupireddy <bharath(dot)rupireddyforpostgres(at)gmail(dot)com>, Sami Imseih <samimseih(at)gmail(dot)com>, Matheus Alcantara <matheusssilv97(at)gmail(dot)com>, Maxim Orlov <orlovmg(at)gmail(dot)com>, Postgres hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org> |
| Subject: | Re: POC: Parallel processing of indexes in autovacuum |
| Date: | 2026-04-01 12:10:39 |
| Message-ID: | CAPpHfdu=xY_wpPitxFTH0kaGiFsd2JsXhL4=s_SO-TPRouVzPA@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
Hi, Daniil!
On Wed, Apr 1, 2026 at 10:44 AM Daniil Davydov <3danissimo(at)gmail(dot)com> wrote:
> Thank you very much for your comments!
> Please, see an updated patch.
Thank you for your work on this subject! I've some notes about the patch.
1) The changes in guc.c allows autovacuum parallel leader to accept
changes in not just cost-based GUCs, but any GUCs. That should be no
problem, because parallel workers have their own copies of GUC
variables, but I think this worth comment.
2) Maximum value for autovacuum_parallel_workers reloption is defined
as literally 1024, while max value for autovacuum_max_parallel_workers
is defined as MAX_PARALLEL_WORKER_LIMIT (also 1024). Should we define
max value for reloption as MAX_PARALLEL_WORKER_LIMIT as well?
3) Some paragraphs were moved from vacuum.sgml to maintenance.sgml.
It particular it references <replaceable
class="parameter">integer</replaceable, which is related to PARALLEL
option syntax: (PARALLEL integer). Now it becoming unclear and needs
to be revised.
4) I also think maintenance.sgml should mention the new reloption.
5) I think it worth having a test which check that setting
autovacuum_parallel_workers to 0 disables the parallel autovacuum for
given table.
6) Minor grammar issue in PVSharedCostParams comment, it must be
"vacuum workers compare" (plural subject).
------
Regards,
Alexander Korotkov
Supabase
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Amit Langote | 2026-04-01 12:18:14 | Re: Eliminating SPI / SQL from some RI triggers - take 3 |
| Previous Message | Andrey Borodin | 2026-04-01 12:01:51 | Re: Online PostgreSQL version() updates |