Re: Integrated autovacuum
От | Alvaro Herrera |
---|---|
Тема | Re: Integrated autovacuum |
Дата | |
Msg-id | 20050727212116.GF1832@alvh.no-ip.org обсуждение исходный текст |
Ответ на | Re: Integrated autovacuum ("Joshua D. Drake" <jd@commandprompt.com>) |
Ответы |
Re: Integrated autovacuum
|
Список | pgsql-hackers |
On Wed, Jul 27, 2005 at 02:07:28PM -0700, Joshua D. Drake wrote: > Great Thanks... Could I get a better explanation of the following: > > #autovacuum_vacuum_scale_factor = 0.4 # fraction of rel size before vacuum > #autovacuum_analyze_scale_factor = 0.2 # fraction of rel size before > analyze Sure. We use a scoring system: score = X_base_threshold + X_scale_factor * reltuples where X is one of vacuum or analyze. reltuples is the number for pg_class. We decide to vacuum if the number of dead tuples in the table as reported to the stats system is higher than the score. If it isn't, we decide to analyze if the number of new tuples since last analyze + dead tuples since last analyze is higher than the score. This all will become clearer when we have real docs for autovacuum. Also, somebody (Rod Taylor I think) proposed changed the variable names to vacuum_auto_vacuum_scale_factor vacuum_auto_analyze_scale_factor etc. I haven't seen much agreement nor disagreement with the idea. I agree with that on principle but you have to admit the above names are confusing and too long. -- Alvaro Herrera (<alvherre[a]alvh.no-ip.org>) "Las cosas son buenas o malas segun las hace nuestra opinión" (Lisias)
В списке pgsql-hackers по дате отправления: