Re: Stored procedure returning row or resultset - Mailing list pgsql-sql

From Richard Huxton
Subject Re: Stored procedure returning row or resultset
Date
Msg-id 200210150917.26662.dev@archonet.com
Whole thread Raw
In response to Re: Stored procedure returning row or resultset  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Stored procedure returning row or resultset
List pgsql-sql
On Monday 14 Oct 2002 6:17 pm, Tom Lane wrote:
> Richard Huxton <dev@archonet.com> writes:
> > Have you looked at marking f1() etc cachable? This means Postgresql
> > will only call the function once for each parameter-set.
>
> Unfortunately that's not true at all, or at least not helpful for this
> problem.  The cachable attribute was poorly named, because it leads
> people to think that PG *will* cache function results, as opposed to
> *could* cache function results.

I must admit, that was my impression. Are there simple rules for if/when PG
will cache function results?

--  Richard Huxton


pgsql-sql by date:

Previous
From: Keith Gray
Date:
Subject: Re: Slow performance on MAX(primary_key)
Next
From: "Peter Galbavy"
Date:
Subject: how do i insert an empty string ?