From: Keith Worthington <KeithW@NarrowPathInc.com>
To: pgsql-performance@postgresql.org
Subject: View vs function
Date: Sun, 20 Mar 2005 22:39:57 -0500
Message-ID: <423E420D.1020503@NarrowPathInc.com> (raw)
Hi All,
I have been reading about set returning functions. What I would like to
know is is there a performance advantage in using SRFs versus querying a
view. Assuming the underlying SQL is the same for the view vs the
function except for the WHERE clause which of these would you expect to
be faster? Or does the planner realize all this...
SELECT * FROM view_big_query WHERE column1 = 1234;
SELECT * FROM func_bug_query(1234);
--
Kind Regards,
Keith
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-performance@postgresql.org
Cc: KeithW@NarrowPathInc.com
Subject: Re: View vs function
In-Reply-To: <423E420D.1020503@NarrowPathInc.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox