Re: Why does the number of rows are different in actual and estimated. - Mailing list pgsql-performance

From Andrew Dunstan
Subject Re: Why does the number of rows are different in actual and estimated.
Date
Msg-id 50CA586A.30008@dunslane.net
Whole thread Raw
In response to Why does the number of rows are different in actual and estimated.  (AI Rumman <rummandba@gmail.com>)
Responses Re: Why does the number of rows are different in actual and estimated.
Re: Why does the number of rows are different in actual and estimated.
List pgsql-performance
On 12/13/2012 05:12 PM, AI Rumman wrote:
> Why does the number of rows are different in actual and estimated?
>


Isn't that in the nature of estimates? An estimate is a heuristic guess
at the number of rows it will find for the given query or part of a
query. It's not uncommon for estimates to be out by several orders of
magnitude. Guaranteeing estimates within bounded accuracy and in a given
short amount of time (you don't want your planning time to overwhelm
your execution time) isn't possible.

cheers

andrew



pgsql-performance by date:

Previous
From: AI Rumman
Date:
Subject: Why does the number of rows are different in actual and estimated.
Next
From: Evgeny Shishkin
Date:
Subject: Re: Why does the number of rows are different in actual and estimated.