Re: [HACKERS] pg_statistic "forced" values

2007-11-08 Thread Simon Riggs
On Wed, 2007-11-07 at 17:18 +0100, Jacques Caron wrote: > It is well known that in some instances the Postgresql will make > estimates of the number of distinct values in a table that can be > quite far off reality. This then has a tendency to make the planner > lean towards unsavory plans (rea

[HACKERS] pg_statistic "forced" values

2007-11-07 Thread Jacques Caron
Hi, It is well known that in some instances the Postgresql will make estimates of the number of distinct values in a table that can be quite far off reality. This then has a tendency to make the planner lean towards unsavory plans (read: seqscans) because it estimates the number of lines retu