Re: Overriding the optimizer

From: "Craig A(dot) James" <cjames(at)modgraph-usa(dot)com>
To: pgsql-performance(at)postgresql(dot)org
Subject: Re: Overriding the optimizer
Date: 2005-12-16 02:18:09
Message-ID: 43A223E1.5040903@modgraph-usa.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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 changes with every query. A function index won't work.

Craig

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Craig A. James 2005-12-16 02:23:22 Re: Overriding the optimizer
Previous Message Craig A. James 2005-12-16 02:16:08 Re: Overriding the optimizer