Re: Cost estimates consistently too high - does it matter?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Matt Clark" <matt(at)ymogen(dot)net>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: Cost estimates consistently too high - does it matter?
Date: 2003-08-08 15:14:36
Message-ID: 26638.1060355676@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

"Matt Clark" <matt(at)ymogen(dot)net> writes:
> I've noticed that the cost estimates for a lot of my queries are
> consistently far to high.

You seem to be under a misapprehension. The cost estimates are not
in units of milliseconds, they are on an arbitrary scale with 1.0
defined as one disk fetch.

LIMIT throws another monkey wrench into the mix: the estimates for the
plan nodes underneath the limit are done as if the plan were to be
executed to completion, which of course it won't be.

regards, tom lane

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Matt Clark 2003-08-08 15:38:55 Re: Cost estimates consistently too high - does it matter?
Previous Message Tom Lane 2003-08-08 14:03:46 Re: readline missing on linux?