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

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.

-- 
-Josh Berkus
 Aglio Database Solutions
 San Francisco




view thread (4+ messages)  latest in thread

Message-ID: <200404081633.40388.josh@agliodbs.com>
Permalink:  ../200404081633.40388.josh@agliodbs.com/
Also on:    postgresql.org/message-id/200404081633.40388.josh@agliodbs.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 using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: josh@agliodbs.com, mark.lubratt@indeq.com
  Subject: Re: tsearch query plan
  In-Reply-To: <200404081633.40388.josh@agliodbs.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