Re: tsearch query plan - Mailing list pgsql-performance

From Tom Lane
Subject Re: tsearch query plan
Date
Msg-id 21349.1081488411@sss.pgh.pa.us
Whole thread Raw
In response to Re: tsearch query plan  (Mark Lubratt <mark.lubratt@indeq.com>)
List pgsql-performance
Mark Lubratt <mark.lubratt@indeq.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

pgsql-performance by date:

Previous
From: Mark Lubratt
Date:
Subject: Re: tsearch query plan
Next
From: Tom Lane
Date:
Subject: Re: Wierd issues