Re: Acceptable level of over-estimation?

From: Gregory Stark <stark(at)enterprisedb(dot)com>
To: "Carlo Stonebanks" <stonec(dot)register(at)sympatico(dot)ca>
Cc: <pgsql-performance(at)postgresql(dot)org>
Subject: Re: Acceptable level of over-estimation?
Date: 2007-09-24 20:18:25
Message-ID: 87k5qfom0e.fsf@oxford.xeocode.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

"Carlo Stonebanks" <stonec(dot)register(at)sympatico(dot)ca> writes:

> Is there a rule of thumb about when the planner's row estimates are too high?
> In particular, when should I be concerned that planner's estimated number of
> rows estimated for a nested loop is off? By a factor of 10? 100? 1000?

Not really. It's a big enough difference for the planner to make a bad
decision or it isn't. But if you pressed me I would say a factor of 10 is bad.
A factor of 2 is inevitable in some cases.

--
Gregory Stark
EnterpriseDB http://www.enterprisedb.com

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Ow Mun Heng 2007-09-25 00:50:40 Re: REPOST: Nested loops row estimates always too high
Previous Message Carlo Stonebanks 2007-09-24 19:37:41 Acceptable level of over-estimation?