Re: Overriding the optimizer

Поиск
Список
Период
Сортировка
От Christopher Kings-Lynne
Тема Re: Overriding the optimizer
Дата
Msg-id 43A2203B.2050102@familyhealth.com.au
обсуждение исходный текст
Ответ на Re: Overriding the optimizer  (Jaime Casanova <systemguards@gmail.com>)
Ответы Re: Overriding the optimizer  ("Craig A. James" <cjames@modgraph-usa.com>)
Список pgsql-performance
>>>   select * from my_table     where row_num >= 50000 and row_num < 100000
>>>    and myfunc(foo, bar);
>>
>>You just create an index on myfunc(foo, bar)
>
> only if myfunc(foo, bar) is immutable...

And if it's not then the best any database can do is to index scan
row_num - so still you have no problem.

Chris


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

Предыдущее
От: Jaime Casanova
Дата:
Сообщение: Re: Overriding the optimizer
Следующее
От: "Craig A. James"
Дата:
Сообщение: Re: Overriding the optimizer