pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bill Moran <wmoran@potentialtech.com>
To: pgsql-performance@postgresql.org
Subject: Re: cacheable stored functions?
Date: Fri, 20 Feb 2004 11:48:24 -0500
Message-ID: <40363A58.5020609@potentialtech.com> (raw)
In-Reply-To: <200402201601.28789.dev@archonet.com>
References: <40362944.2060809@potentialtech.com>
	<200402201601.28789.dev@archonet.com>

Richard Huxton wrote:
> On Friday 20 February 2004 15:35, 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.
>>
>>Now I'm looking at a lot of other functions that, if cached, would speed
>>up performance considerably.  Yet I'm reluctant to use this directive
>>since I can't find documentation on it anywhere.
> 
>>From memory, "iscachable" was replaced in version 7.3 by the three 
> finer-grained settings IMMUTABLE, STABLE, VOLATILE.
> 
> I'm guessing the old behaviour is still there for backwards compatibility, but 
> it's probably best to use the new versions.

Thanks to everyone who replied (with more or less the same answer ;)

This has explained away my confusion, and I now have a reference to read.

-- 
Bill Moran
Potential Technologies
http://www.potentialtech.com




view thread (5+ messages)

Message-ID: <40363A58.5020609@potentialtech.com>
Permalink:  ../40363A58.5020609@potentialtech.com/
Also on:    postgresql.org/message-id/40363A58.5020609@potentialtech.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: wmoran@potentialtech.com
  Subject: Re: cacheable stored functions?
  In-Reply-To: <40363A58.5020609@potentialtech.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