Re: Potential autovacuum optimization: new tables - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Potential autovacuum optimization: new tables
Date
Msg-id 28432.1350093798@sss.pgh.pa.us
Whole thread Raw
In response to Re: Potential autovacuum optimization: new tables  (Josh Berkus <josh@agliodbs.com>)
Responses Re: Potential autovacuum optimization: new tables  (Josh Berkus <josh@agliodbs.com>)
Re: Potential autovacuum optimization: new tables  (Stephen Frost <sfrost@snowman.net>)
List pgsql-hackers
Josh Berkus <josh@agliodbs.com> writes:
>> I remember having got voted down on the percentage approach back when
>> we first put AV into core, but I remain convinced that decision was a
>> bad one.

> Yeah, I was one of the ones voting against you.  The reason not to have
> percentage-only is for small tables.  Imagine that you have a table with
> 18 rows, and analyze_threshold is 0 and analyze_scale_factor is 0.1.

[ shrug... ]  You're attacking a straw man, or more precisely putting
words into my mouth about what the percentage-based thresholds might be.
Notice the examples I gave involved update percentages quite far north
of 100%.  It's possible and maybe likely that we need a sliding scale.

Also, I don't necessarily accept the conclusion you seem to be drawing,
that it's okay to have complete turnover of a small table and not redo
its stats.  If you don't like the current behavior when there's no
stats, why would you like the behavior when there are some stats but
they no longer have the remotest relationship to reality?

> Can anyone think of a new heuristic which doesn't involve adding 2-6 new
> GUCS knobs?

The increased number of knobs may be a problem, but I don't think we can
avoid having more.  Your own complaint is that the current design is too
simplistic.  Replacing it with a different but equally simplistic design
probably won't help much.
        regards, tom lane



pgsql-hackers by date:

Previous
From: Josh Berkus
Date:
Subject: Re: Potential autovacuum optimization: new tables
Next
From: Josh Berkus
Date:
Subject: Re: Potential autovacuum optimization: new tables