Re: Views and functions returning sets of records

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Giorgio Valoti <giorgio_v(at)mac(dot)com>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: Views and functions returning sets of records
Date: 2008-03-22 16:33:59
Message-ID: 29705.1206203639@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

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

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Andreas Kretschmer 2008-03-22 16:35:47 Re: Views and functions returning sets of records
Previous Message Giorgio Valoti 2008-03-22 14:01:50 Views and functions returning sets of records