Re: Does iscachable work?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: ffabrizio(at)mmrd(dot)com
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Does iscachable work?
Date: 2002-02-22 18:02:19
Message-ID: 18025.1014400939@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

root <ffabrizio(at)mmrd(dot)com> writes:
> I'm running PostgreSQL 7.1.3, and I have a query that uses one of my
> functions:

> select findregion(entityid) from msg200;

> The findregion function is set to be 'with (iscachable)'. However, the
> query takes upwards of 40 seconds to run, the first time and every time
> thereafter, consistently. It doesn't seem like the caching is working.

I'm not sure what you think "iscachable" does ... but there certainly is
not a cache that remembers the results of functions across statements.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Devrim GUNDUZ 2002-02-22 18:11:05 Re: moving to 7.2
Previous Message Tom Lane 2002-02-22 17:58:27 Re: How does Index Scan get used