Re: Optimizer Question/Suggestion

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Optimizer Question/Suggestion
Дата
Msg-id 19188.1036298589@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Optimizer Question/Suggestion  (Philip Warner <pjw@rhyme.com.au>)
Список 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 по дате отправления:

Предыдущее
От: Tatsuo Ishii
Дата:
Сообщение: Re: CONVERT function is seriously broken
Следующее
От: Hannu Krosing
Дата:
Сообщение: Re: Optimizer Question/Suggestion