Re: Views and functions returning sets of records

From: Andreas Kretschmer <akretschmer(at)spamfence(dot)net>
To: pgsql-performance(at)postgresql(dot)org
Subject: Re: Views and functions returning sets of records
Date: 2008-03-22 16:55:51
Message-ID: 20080322165551.GA19460@KanotixBox
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> schrieb:

> Giorgio Valoti <giorgio_v(at)mac(dot)com> writes:
> > maybe it’s 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.

*smile*

Andreas
--
Really, I'm not out to destroy Microsoft. That will just be a completely
unintentional side effect. (Linus Torvalds)
"If I was god, I would recompile penguin with --enable-fly." (unknow)
Kaufbach, Saxony, Germany, Europe. N 51.05082°, E 13.56889°

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Giorgio Valoti 2008-03-23 09:37:12 Re: Views and functions returning sets of records
Previous Message Andreas Kretschmer 2008-03-22 16:35:47 Re: Views and functions returning sets of records