"Andrus" <eetasoft(at)online(dot)ee> writes:
> This causes error
>
> ERROR: syntax error at or near "IF"
> SQL state: 42601
> Character: 109
SQL has no "IF". Use plpgsql instead.
> How many times this is slower than expression in where clause?
You can time it. :-) But I don't believe it will be too slow since it is a
simple operation...
--
Jorge Godoy <jgodoy(at)gmail(dot)com>