Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 400CF476857 for ; Wed, 18 Dec 2002 14:16:17 -0500 (EST) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by postgresql.org (Postfix) with ESMTP id 87B0A476841 for ; Wed, 18 Dec 2002 14:16:16 -0500 (EST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.6/8.12.6) with ESMTP id gBIJGFpd011106; Wed, 18 Dec 2002 14:16:16 -0500 (EST) To: "Gaetano Mendola" Cc: pgsql-admin@postgresql.org Subject: Re: Strange behaviour ( function cachable ) In-reply-to: References: Comments: In-reply-to "Gaetano Mendola" message dated "Wed, 18 Dec 2002 20:07:18 +0100" Date: Wed, 18 Dec 2002 14:16:15 -0500 Message-ID: <11105.1040238975@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200212/238 X-Sequence-Number: 6733 "Gaetano Mendola" 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