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

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

Well, I usually am under a misapprehension! Thanks for the explanation about LIMIT too.

In that case then, I shall stop worrying and learn to love the planner.

M

> -----Original Message-----
> From: Tom Lane [mailto:tgl(at)sss(dot)pgh(dot)pa(dot)us]
> Sent: 08 August 2003 16:15
> To: Matt Clark
> Cc: pgsql-admin(at)postgresql(dot)org
> Subject: Re: [ADMIN] Cost estimates consistently too high - does it
> matter?
>
>
> "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

Browse pgsql-admin by date

  From Date Subject
Next Message Dani Oderbolz 2003-08-08 15:39:46 Re: ext3 block size
Previous Message Tom Lane 2003-08-08 15:14:36 Re: Cost estimates consistently too high - does it matter?