Re: tsearch query plan

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Mark Lubratt <mark(dot)lubratt(at)indeq(dot)com>
Cc: pgsql-performance(at)postgresql(dot)org, josh(at)agliodbs(dot)com
Subject: Re: tsearch query plan
Date: 2004-04-09 05:26:51
Message-ID: 21349.1081488411@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

Mark Lubratt <mark(dot)lubratt(at)indeq(dot)com> writes:
> 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.

The cost estimates are not even in the same units as the actual runtime.
Cost is in an arbitrary scale in which 1 unit = 1 sequential disk block
fetch. It is unknown what this might equate to on your machine ... but
it's quite unlikely that it's 1.0 millisecond. The thing to look at
when considering EXPLAIN results is whether the ratios of different cost
estimates are proportional to the actual runtimes.

regards, tom lane

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Tom Lane 2004-04-09 15:02:11 Re: Wierd issues
Previous Message Mark Lubratt 2004-04-09 03:28:37 Re: tsearch query plan