pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Stephan Szabo <sszabo@megazone.bigpanda.com>
To: Bill Moran <wmoran@potentialtech.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: cacheable stored functions?
Date: Fri, 20 Feb 2004 07:47:33 -0800 (PST)
Message-ID: <20040220074336.G82937@megazone.bigpanda.com> (raw)
In-Reply-To: <40362944.2060809@potentialtech.com>
References: <40362944.2060809@potentialtech.com>

On Fri, 20 Feb 2004, Bill Moran wrote:

> I'm converting a SQL application to PostgreSQL.  The majority of the logic
> in this application is in the stored functions in the database.
>
> Somewhere, I saw a reference to "WITH (iscachable)" for stored functions,
> looking again, I'm unable to find any reference to this directive.  I have
> a single function that is _obviously_ safe to cache using this, and it
> generates no errors or problems that I can see.

It's been basically superceded by IMMUTABLE, and I believe they're
described in the create function reference page.  Note that it doesn't
involve caching as much as the fact that it can be evaluated once and
treated as a constant.



view thread (5+ messages)  latest in thread

Message-ID: <20040220074336.G82937@megazone.bigpanda.com>
Permalink:  ../20040220074336.G82937@megazone.bigpanda.com/
Also on:    postgresql.org/message-id/20040220074336.G82937@megazone.bigpanda.com

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: sszabo@megazone.bigpanda.com, wmoran@potentialtech.com
  Subject: Re: cacheable stored functions?
  In-Reply-To: <20040220074336.G82937@megazone.bigpanda.com>

* 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