Re: another autovacuum scheduling thread - Mailing list pgsql-hackers

From Nathan Bossart
Subject Re: another autovacuum scheduling thread
Date
Msg-id aOfj2cLCQHzTcyoB@nathan
Whole thread Raw
In response to Re: another autovacuum scheduling thread  (Andres Freund <andres@anarazel.de>)
List pgsql-hackers
On Thu, Oct 09, 2025 at 12:15:31PM -0400, Andres Freund wrote:
> On 2025-10-09 11:01:16 -0500, Nathan Bossart wrote:
>> I also wonder how hard it would be to gracefully catch the error and let
>> the worker continue with the rest of its list...
> 
> The main set of cases I've seen are when workers get hung up permanently in
> corrupt indexes. There never is actually an error, the autovacuums just get
> terminated as part of whatever independent reason there is to restart. The
> problem with that is that you'll never actually have vacuum fail...

Ah.  Wouldn't the other workers skip that table in that scenario?  I'm not
following the great advantage of varying the order in this case.  I suppose
the full set of workers might be able to process more tables before one
inevitably gets stuck.  Is that it?

-- 
nathan



pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: compiling pg_bsd_indent
Next
From: Álvaro Herrera
Date:
Subject: Re: memory leak in dbase_redo()