Pavel Stehule <pavel.stehule@gmail.com> writes:
> I testing a simple use case and I was surprised with very slow
> execution of SQL functions
The one case is inline-able and the other not (because it would result
in double evaluation of the volatile function random()).
See EXPLAIN VERBOSE.
regards, tom lane