Re: Optimizer Question/Suggestion - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Optimizer Question/Suggestion
Date
Msg-id 19188.1036298589@sss.pgh.pa.us
Whole thread Raw
In response to Re: Optimizer Question/Suggestion  (Philip Warner <pjw@rhyme.com.au>)
List pgsql-hackers
Philip Warner <pjw@rhyme.com.au> writes:
> At 09:36 AM 2/11/2002 -0500, Tom Lane wrote:
>> BTW, the system does not actually have any stats about dead tuples.
>> What it knows about are live tuples and total disk pages occupied by
>> the table.

> So what made it choose the index scan?

Well, the main component of the seqscan cost estimate is the total
number of disk pages, while the indexscan cost estimate is driven
by the number of tuples expected to be retrieved.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tatsuo Ishii
Date:
Subject: Re: CONVERT function is seriously broken
Next
From: Hannu Krosing
Date:
Subject: Re: Optimizer Question/Suggestion