Re: Idea for the statistics collector - Mailing list pgsql-general

From Bruce Momjian
Subject Re: Idea for the statistics collector
Date
Msg-id 200206211223.g5LCNmj10034@candle.pha.pa.us
Whole thread Raw
In response to Re: Idea for the statistics collector  (Martijn van Oosterhout <kleptog@svana.org>)
Responses Re: Idea for the statistics collector
List pgsql-general
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

pgsql-general by date:

Previous
From: terry@greatgulfhomes.com
Date:
Subject: FW: [DOCS] crash problem
Next
From: Andrew Sullivan
Date:
Subject: Re: SELECT problem