Re: PostgreSQL and Performance of Functions

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: pgsql-admin(at)postgresql(dot)org
Cc: "Aaron Bono" <postgresql(at)aranya(dot)com>, "Rajesh Kumar Mallah" <mallah(dot)rajesh(at)gmail(dot)com>
Subject: Re: PostgreSQL and Performance of Functions
Date: 2006-12-02 01:33:38
Message-ID: 200612020233.39653.peter_e@gmx.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

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/

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Benjamin Krajmalnik 2006-12-02 05:18:24 Performance question
Previous Message Peter Wilson 2006-12-02 01:18:09 Re: Problem restoring with pg_dump