Ivan Sergio Borgonovo <mail(at)webthatworks(dot)it> writes:
> I can't really appreciate the difference... or better... I think the
> difference may be that I can't take for granted the function will be
> cached if I delegate the choice to the optimiser.
You can take for granted that it won't be, because there is no function
cache in Postgres.
regards, tom lane