Re: Bad plan when join on function - Mailing list pgsql-performance

From Pavel Stehule
Subject Re: Bad plan when join on function
Date
Msg-id AANLkTim33Of+Xy+wRMBGx=HZOi_8VFqLXrXyE+5qrJqv@mail.gmail.com
Whole thread Raw
In response to Re: Bad plan when join on function  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-performance
2011/1/17 Tom Lane <tgl@sss.pgh.pa.us>:
> Pavel Stehule <pavel.stehule@gmail.com> writes:
>> it should to work without functional index - but not sure about effectivity
>
> As long as the function is VOLATILE, the planner can't use any
> intelligent query plan.  Merge or hash join both require at least
> stable join keys.

sure, my first advice was a question about function volatility - and
my sentence was related to using immutable function.

regards

Pavel Stehule

>
>                        regards, tom lane
>

pgsql-performance by date:

Previous
From: Tom Lane
Date:
Subject: Re: Bad plan when join on function
Next
From: Mladen Gogala
Date:
Subject: Re: Possible to improve query plan?