Re: Shouldn't the planner have a higher cost for reverse index scans?

Поиск
Список
Период
Сортировка
От Josh Berkus
Тема Re: Shouldn't the planner have a higher cost for reverse index scans?
Дата
Msg-id 49DF7CE5.4020404@agliodbs.com
обсуждение исходный текст
Ответ на Re: Shouldn't the planner have a higher cost for reverse index scans?  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Shouldn't the planner have a higher cost for reverse index scans?  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-performance
Tom,

>> Now, while index scans (for indexes on disk) aren't 100% sequential
>> reads, it seems like we should be increasing (substantially) the
>> estimated cost of reverse index scans if the index is likely to be on
>> disk.  No?
>
> AFAICS this is already folded into random_page_cost.

Not as far as I can tell.   It looks to me like the planner is assuming
that a forwards index scan and a reverse index scan will have the same
cost.

--
Josh Berkus
PostgreSQL Experts Inc.
www.pgexperts.com

В списке pgsql-performance по дате отправления:

Предыдущее
От: "Joshua D. Drake"
Дата:
Сообщение: Re: Using IOZone to simulate DB access patterns
Следующее
От: Josh Berkus
Дата:
Сообщение: Re: Using IOZone to simulate DB access patterns