Re: Very poor estimates from planner

Rod Taylor <rbt@rbt.ca>

From: Rod Taylor <rbt@rbt.ca>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Scott Marlowe <scott.marlowe@ihs.com>, PostgreSQL Development <pgsql-hackers@postgresql.org>
Date: 2003-11-06T00:02:21Z
Lists: pgsql-hackers
On Wed, 2003-11-05 at 18:57, Tom Lane wrote:
> Rod Taylor <rbt@rbt.ca> writes:
> >> I'm not sure if that will actually change the default_statistics_target
> 
> > Hmm.. I was under the impression that it would work for any tables that
> > haven't otherwise been overridden.
> 
> It will.  I think Scott is recalling the original circa-7.2
> implementation, where it wouldn't.  If you're unsure that you
> affected it, check out the actual sizes of the array values in pg_stats.

The plan does change when I remove it and re-analyze it.

Either way, it's off by a factor of a 10^5 or so.