Re: Strange behaviour ( function cachable )

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Gaetano Mendola" <mendola(at)bigfoot(dot)com>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: Strange behaviour ( function cachable )
Date: 2002-12-18 19:16:15
Message-ID: 11105.1040238975@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

"Gaetano Mendola" <mendola(at)bigfoot(dot)com> writes:
> I expected that if a function is cachable and is used
> inside a select like:
> SELECT * FROM foo WHERE id = my_func( a_param )
> then the function my_func is called one for each different value
> of a_param.

That is not what "cachable" means to Postgres. There is no function
result cache such as you seem to envision.

regards, tom lane

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message HT Levine 2002-12-19 01:54:41 HELP? Postgres filling up disk
Previous Message Gaetano Mendola 2002-12-18 19:07:18 Strange behaviour ( function cachable )