From: Tom Lane <tgl@sss.pgh.pa.us>
To: Bill Moran <wmoran@potentialtech.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: On the performance of views
Date: Mon, 26 Jan 2004 11:43:37 -0500
Message-ID: <8197.1075135417@sss.pgh.pa.us> (raw)
In-Reply-To: <40152FF2.8000007@potentialtech.com>
References: <40152FF2.8000007@potentialtech.com>
Bill Moran <wmoran@potentialtech.com> writes:
> At first I was going to just convert all MSSQL procedures to Postgres functions.
> But now that I'm looking at it, a lot of them may be candidates for views. A
> lot of them take on the format of:
> SELECT a.cola, b.colb, c.colc
> FROM a JOIN b JOIN c
> WHERE a.prikey=$1
You'd probably be better off using views, if making that significant a
notational change is feasible for you. Functions that return multiple
columns are notationally messy in Postgres. A view-based solution would
be more flexible and likely have better performance.
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-sql@postgresql.org
Cc: tgl@sss.pgh.pa.us, wmoran@potentialtech.com, pgsql-performance@postgresql.org
Subject: Re: On the performance of views
In-Reply-To: <8197.1075135417@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