Re: Why does the number of rows are different in actual and estimated.

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: AI Rumman <rummandba(at)gmail(dot)com>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: Why does the number of rows are different in actual and estimated.
Date: 2012-12-13 22:36:26
Message-ID: 50CA586A.30008@dunslane.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Evgeny Shishkin 2012-12-13 22:40:35 Re: Why does the number of rows are different in actual and estimated.
Previous Message AI Rumman 2012-12-13 22:12:22 Why does the number of rows are different in actual and estimated.