Tomasz Myrta <jasiek(at)lamer(dot)pl> writes:
> Why the first expression is 25 times slower?
Hard to say, when you haven't shown us the schema. (Column datatypes,
definitions of available indexes, etc are all critical information for
this sort of question.)
regards, tom lane