Re: Overriding the optimizer - Mailing list pgsql-performance

From Christopher Kings-Lynne
Subject Re: Overriding the optimizer
Date
Msg-id 43A2203B.2050102@familyhealth.com.au
Whole thread Raw
In response to Re: Overriding the optimizer  (Jaime Casanova <systemguards@gmail.com>)
Responses Re: Overriding the optimizer
List 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 by date:

Previous
From: Jaime Casanova
Date:
Subject: Re: Overriding the optimizer
Next
From: "Craig A. James"
Date:
Subject: Re: Overriding the optimizer