Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-performance by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group