From: Tom Lane <tgl@sss.pgh.pa.us>
To: Giorgio Valoti <giorgio_v@mac.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: Views and functions returning sets of records
Date: Sat, 22 Mar 2008 12:33:59 -0400
Message-ID: <29705.1206203639@sss.pgh.pa.us> (raw)
In-Reply-To: <6A737ADC-2A11-4A01-8ACE-C439E4297273@mac.com>
References: <6A737ADC-2A11-4A01-8ACE-C439E4297273@mac.com>
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.
regards, tom lane
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: tgl@sss.pgh.pa.us, giorgio_v@mac.com
Subject: Re: Views and functions returning sets of records
In-Reply-To: <29705.1206203639@sss.pgh.pa.us>
* 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