Tom Lane wrote:
Russell Smith <[EMAIL PROTECTED]> writes:
In-equality transformations do not guarantee that y > 1.5x == y/x >
1.5. This is only true for x>0, y < 1.5*x for x<0. I have not posted a
patch as I'm not sure what is the best way to change the example.
Seems a bit nit-pick
Russell Smith <[EMAIL PROTECTED]> writes:
> In-equality transformations do not guarantee that y > 1.5x == y/x >
> 1.5. This is only true for x>0, y < 1.5*x for x<0. I have not posted a
> patch as I'm not sure what is the best way to change the example.
Seems a bit nit-picky, but we could chang
Russell Smith wrote:
> SELECT ... WHERE CASE WHEN x <> 0 THEN y/x > 1.5 ELSE false END;
>
> A CASE construct used in this fashion will defeat optimization attempts,
> so it should only be done when necessary. (In this particular example,
> it would be best to sidestep the problem by writing y > 1.5