Ivan Voras <ivoras(at)freebsd(dot)org> writes:
> Are functions in language 'sql' handled differently than those of
> language 'plpgsql'?
Yes.
> I think they're not so in any case a function will behave as a black box
> with regards to the planner and optimizer (and views are always
> 'transparent').
No.
regards, tom lane