Re: autovacuum: automatically propagate updated parameters - Mailing list pgsql-bugs

From Zsolt Parragi
Subject Re: autovacuum: automatically propagate updated parameters
Date
Msg-id CAN4CZFMRsr_ncTii9JdNBAZnWcemmukrhe6maiBXt+oyjB1mrQ@mail.gmail.com
Whole thread
In response to Re: autovacuum: automatically propagate updated parameters  (Masahiko Sawada <sawada.mshk@gmail.com>)
Responses Re: autovacuum: automatically propagate updated parameters
List pgsql-bugs
On Thu, 24 Sep 2026, Masahiko Sawada <sawada.mshk@gmail.com> wrote:
> So if we want to
> use the condition variable, it seems better to me to have a dedicated
> wait function in vacuumparallel.c that waits until all indexes are
> completed, and then call WaitForParallelWorkersToFinish().

That'll bring back the more complicated approach of v2, and also make
this part of the code more complex.

While I didn't do proper measurements, my logic against it was similar
to what Manu already posted, that it seems harmless here and it is
significantly simpler than adding a cv.

Also, I think both issues could be solved in a more proper way with
more refactoring, but that seems excessive for 19. (And in that case,
going with a simple solution for 19 also seems like a good answer to
me)



pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: BUG #19699: LIKE with a trailing escape fails to raise SQLSTATE 22025 for empty input
Next
From: Daniel Gustafsson
Date:
Subject: Re: autovacuum: automatically propagate updated parameters