Re: New GUC autovacuum_max_threshold ? - Mailing list pgsql-hackers

From Frédéric Yhuel
Subject Re: New GUC autovacuum_max_threshold ?
Date
Msg-id afffa064-53ff-43f4-93ec-34dba8c1f9ba@dalibo.com
Whole thread Raw
In response to Re: New GUC autovacuum_max_threshold ?  (Robert Haas <robertmhaas@gmail.com>)
List pgsql-hackers

Le 01/05/2024 à 20:50, Robert Haas a écrit :
> Possibly what we need here is
> something other than a cap, where, say, we vacuum a 10GB table twice
> as often as now, a 100GB table four times as often, and a 1TB table
> eight times as often. Or whatever the right answer is.

IMO, it would make more sense. So maybe something like this:

vacthresh = Min(vac_base_thresh + vac_scale_factor * reltuples, 
vac_base_thresh + vac_scale_factor * sqrt(reltuples) * 1000);

(it could work to compute a score, too, like in David's proposal)




pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: small documentation fixes related to collations/ICU
Next
From: Michael Paquier
Date:
Subject: Re: Weird test mixup