Re: Strange behaviour ( function cachable ) - Mailing list pgsql-admin

From Tom Lane
Subject Re: Strange behaviour ( function cachable )
Date
Msg-id 11105.1040238975@sss.pgh.pa.us
Whole thread Raw
In response to Strange behaviour ( function cachable )  ("Gaetano Mendola" <mendola@bigfoot.com>)
List pgsql-admin
"Gaetano Mendola" <mendola@bigfoot.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

pgsql-admin by date:

Previous
From: "Gaetano Mendola"
Date:
Subject: Strange behaviour ( function cachable )
Next
From: HT Levine
Date:
Subject: HELP? Postgres filling up disk