Giorgio Valoti <giorgio_v(at)mac(dot)com> writes:
> maybe its a naive question but I was wondering if there is any
> difference, from a performance point of view, between a view and a
> function performing the same task,
Yes. Usually the view will win.
regards, tom lane