Re: Views and functions returning sets of records - Mailing list pgsql-performance

From Andreas Kretschmer
Subject Re: Views and functions returning sets of records
Date
Msg-id 20080322165551.GA19460@KanotixBox
Whole thread Raw
In response to Re: Views and functions returning sets of records  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Views and functions returning sets of records
List pgsql-performance
Tom Lane <tgl@sss.pgh.pa.us> schrieb:

> Giorgio Valoti <giorgio_v@mac.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°

pgsql-performance by date:

Previous
From: Tom Lane
Date:
Subject: Re: Views and functions returning sets of records
Next
From: Giorgio Valoti
Date:
Subject: Re: Views and functions returning sets of records