Re: turn off cache option

From: Ragnar <gnari(at)hive(dot)is>
To: jungmin shin <jungmin(dot)shin(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: turn off cache option
Date: 2007-04-05 23:33:32
Message-ID: 1175816012.32550.32.camel@localhost.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On fim, 2007-04-05 at 16:31 -0400, jungmin shin wrote:
>
> I'm executing a query invoking a UDF.
> It looks that Postgres use a cache for executing UDFs.

Postgresql is not using a cache specially for executing
UDFs, apart from only compiling the function once for each
session.

>
> select a()
> Excution time of above statement is different each time.
> What is happening inside of the Postgres when I invoke a UDF in a
> query?
>
> It is taking 200ms or 11688ms .

Postgresql relies on the filesystem and operating
system to cache fisk buffers efficiently, so you are probably
just seeing the effects of that, assuming that your function is
doing the same thing each time.

>
> If a cache is used for this execution , can I turn off the cache
> option?

why would you want to do that?

gnari

In response to

Browse pgsql-general by date

  From Date Subject
Next Message William Garrison 2007-04-06 00:21:05 Re: Storing blobs in PG DB
Previous Message Listmail 2007-04-05 23:11:41 Re: Anyone know where I can get an 8.2.3 binary for ubuntu?