Martijn van Oosterhout wrote:
> Firstly, I was only thinking of going for the basic nodes (Index Scan, Seq
> Scan, Distinct). Other types have far more variables. Secondly, even if you
> only count, it's useful. For example, if it tells you that the planner is
> off by a factor of 10 more than 75% of the time, that's useful information
> independant of what the actual variables are.
Yes, only updating the stats if the estimate was off by a factor of 10
or so should cut down on the overhead.
--
Bruce Momjian | http://candle.pha.pa.us
pgman@candle.pha.pa.us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026