Re: Berserk Autovacuum (let's save next Mandrill) - Mailing list pgsql-hackers

From Laurenz Albe
Subject Re: Berserk Autovacuum (let's save next Mandrill)
Date
Msg-id 6eff7a5aef0cdc7beba97dff865fae6908d2b207.camel@cybertec.at
Whole thread Raw
In response to Re: Berserk Autovacuum (let's save next Mandrill)  (Justin Pryzby <pryzby@telsasoft.com>)
List pgsql-hackers
On Fri, 2020-03-13 at 07:00 -0500, Justin Pryzby wrote:
> > 2. The new feature can be completely disabled. This might be very
> > useful for people who suffer from auto-vacuum starvation.
> 
> > Yes, but in particular so it can be completely disabled easily.
> 
> How is it disabled ?  By setting scale_factor=100 ?
> 
> +               {
                                                                
 
> +                       "autovacuum_vacuum_insert_scale_factor",
                                                                
 
> +                       "Number of tuple inserts prior to vacuum as a fraction of reltuples",
                                                                
 
> +                       RELOPT_KIND_HEAP | RELOPT_KIND_TOAST,
                                                                
 
> +                       ShareUpdateExclusiveLock
                                                                
 
> +               },
                                                                
 
> +               -1, 0.0, 100.0
                                                                
 
> 
> Note, vacuum_cleanup_index_scale_factor uses max: 1e10
> See 4d54543efa5eb074ead4d0fadb2af4161c943044

By setting the threshold very high, or by setting the scale factor to 100.

Yours,
Laurenz Albe




pgsql-hackers by date:

Previous
From: Laurenz Albe
Date:
Subject: Re: Berserk Autovacuum (let's save next Mandrill)
Next
From: Hugh McMaster
Date:
Subject: Re: [PATCH] Use PKG_CHECK_MODULES to detect the libxml2 library