pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alvaro Herrera <alvherre@dcc.uchile.cl>
To: Enrico Weigelt <weigelt@metux.de>
Cc: pgsql-performance@postgresql.org
Subject: Re: clear function cache (WAS: SQL function inlining)
Date: Thu, 24 Mar 2005 09:42:40 -0400
Message-ID: <20050324134240.GD20726@dcc.uchile.cl> (raw)
In-Reply-To: <20050324133248.GB31203@nibiru.borg.metux.de>
References: <A66A11DBF5525341AEF6B8DE39CDE770088060@black.aprote.com>
	<7635.1111596928@sss.pgh.pa.us>
	<20050324133248.GB31203@nibiru.borg.metux.de>

On Thu, Mar 24, 2005 at 02:32:48PM +0100, Enrico Weigelt wrote:

> BTW: is it possible to explicitly clear the cache for immutable 
> functions ?

What cache?  There is no caching of function results.

> I'd like to use immutable functions for really often lookups like 
> fetching a username by uid and vice versa. The queried tables 
> change very rarely, but when they change is quite unpredictable.

Maybe you should use a stable function if you fear we'll having function
result caching without you noticing.

-- 
Alvaro Herrera (<alvherre[@]dcc.uchile.cl>)
"Aprende a avergonzarte más ante ti que ante los demás" (Demócrito)



view thread (5+ messages)  latest in thread

Message-ID: <20050324134240.GD20726@dcc.uchile.cl>
Permalink:  ../20050324134240.GD20726@dcc.uchile.cl/
Also on:    postgresql.org/message-id/20050324134240.GD20726@dcc.uchile.cl

 · 

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: alvherre@dcc.uchile.cl, weigelt@metux.de
  Subject: Re: clear function cache (WAS: SQL function inlining)
  In-Reply-To: <20050324134240.GD20726@dcc.uchile.cl>

* 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