pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Mark Lubratt <mark.lubratt@indeq.com>
To: pgsql-performance@postgresql.org
To: josh@agliodbs.com
Subject: Re: tsearch query plan
Date: Thu, 8 Apr 2004 22:28:37 -0500
Message-ID: <FD09DC53-89D5-11D8-80A0-000A9579AF50@indeq.com> (raw)
In-Reply-To: <200404081633.40388.josh@agliodbs.com>
References: <D8C70D62-8982-11D8-90A0-000A9579AF50@indeq.com>
	<200404081633.40388.josh@agliodbs.com>


On Apr 8, 2004, at 6:33 PM, Josh Berkus wrote:

> Mark,
>
>> I've got one question about query planning.  Is it understandable to
>> have the query plan estimation be off by a couple of orders of
>> magnitude?  Or, is it the fact that the cost estimation is small to
>> begin with that the error between the actual and the estimated is
>> "normal"?
>
> Well, your example is not "a couple orders of magnitude".   6 vs. 32 is
> actually pretty good accuracy.
>
> Now, 6 vs 192 would potentially be a problem, let alone 32 vs 13,471.
>

I guess I was looking more at the cost estimate and not so much at the 
rows estimate.  I agree that the row estimate wasn't too bad.  But the 
cost estimate seems way out of line.

I'm somewhat new to examining explain analyze output and I'm looking at 
this as more of an education, since the speed is certainly good anyway. 
  I just expected the cost estimate to be more in line especially 
immediately after an analyze.

-Mark




view thread (4+ messages)  latest in thread

Message-ID: <FD09DC53-89D5-11D8-80A0-000A9579AF50@indeq.com>
Permalink:  ../FD09DC53-89D5-11D8-80A0-000A9579AF50@indeq.com/
Also on:    postgresql.org/message-id/FD09DC53-89D5-11D8-80A0-000A9579AF50@indeq.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-performance@postgresql.org
  Cc: mark.lubratt@indeq.com, josh@agliodbs.com
  Subject: Re: tsearch query plan
  In-Reply-To: <FD09DC53-89D5-11D8-80A0-000A9579AF50@indeq.com>
  References: <D8C70D62-8982-11D8-90A0-000A9579AF50@indeq.com> <200404081633.40388.josh@agliodbs.com> <FD09DC53-89D5-11D8-80A0-000A9579AF50@indeq.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox