pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter_e@gmx.net>
To: pgsql-admin@postgresql.org
Cc: Aaron Bono <postgresql@aranya.com>
Cc: Rajesh Kumar Mallah <mallah.rajesh@gmail.com>
Subject: Re: PostgreSQL and Performance of Functions
Date: Sat, 2 Dec 2006 02:33:38 +0100
Message-ID: <200612020233.39653.peter_e@gmx.net> (raw)
In-Reply-To: <bf05e51c0612011621pb963f25vff25f4460a59d933@mail.gmail.com>
References: <bf05e51c0611301328y327f16fbwa5879b89f3b7d232@mail.gmail.com>
	<a97c77030612010145k53a62ecydfb1556669f3965@mail.gmail.com>
	<bf05e51c0612011621pb963f25vff25f4460a59d933@mail.gmail.com>

Aaron Bono wrote:
> I was told that, for DB2, stored procedures are a better choice for
> parameterized views which is what I was trying to do with the
> functions.  Is the same true for PostgreSQL?

That depends somewhat on the meaning of "better", but on average a view 
should be preferred if possible.  It's easier to set up, easier to 
debug, and at least as efficient.

-- 
Peter Eisentraut
http://developer.postgresql.org/~petere/



view thread (5+ messages)

Message-ID: <200612020233.39653.peter_e@gmx.net>
Permalink:  ../200612020233.39653.peter_e@gmx.net/
Also on:    postgresql.org/message-id/200612020233.39653.peter_e@gmx.net

 · 

reply

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: peter_e@gmx.net, postgresql@aranya.com, mallah.rajesh@gmail.com
  Subject: Re: PostgreSQL and Performance of Functions
  In-Reply-To: <200612020233.39653.peter_e@gmx.net>
  References: <bf05e51c0611301328y327f16fbwa5879b89f3b7d232@mail.gmail.com> <a97c77030612010145k53a62ecydfb1556669f3965@mail.gmail.com> <bf05e51c0612011621pb963f25vff25f4460a59d933@mail.gmail.com> <200612020233.39653.peter_e@gmx.net>

* 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