Re: Overriding the optimizer - Mailing list pgsql-performance

From Craig A. James
Subject Re: Overriding the optimizer
Date
Msg-id 43A223E1.5040903@modgraph-usa.com
Whole thread Raw
In response to Re: Overriding the optimizer  (Christopher Kings-Lynne <chriskl@familyhealth.com.au>)
List pgsql-performance
Christopher Kings-Lynne wrote:
>>    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)

Thanks, but myfunc() takes parameters (shown here as "foo, bar"), one of which is not a column, it's external and
changeswith every query.  A function index won't work. 

Craig

pgsql-performance by date:

Previous
From: "Craig A. James"
Date:
Subject: Re: Overriding the optimizer
Next
From: Christopher Kings-Lynne
Date:
Subject: Re: Overriding the optimizer