Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 1F49B475BA1 for ; Wed, 18 Dec 2002 14:07:29 -0500 (EST) Received: from news.hub.org (news.hub.org [64.49.215.80]) by postgresql.org (Postfix) with ESMTP id AEAB4475AFA for ; Wed, 18 Dec 2002 14:07:28 -0500 (EST) Received: by news.hub.org (Postfix, from userid 8) id 9736C43A822; Wed, 18 Dec 2002 14:07:28 -0500 (EST) From: "Gaetano Mendola" X-Newsgroups: comp.databases.postgresql.admin Subject: Strange behaviour ( function cachable ) Date: Wed, 18 Dec 2002 20:07:18 +0100 Organization: Hub.Org Networking Services (http://www.hub.org) Lines: 18 Message-ID: X-Complaints-To: usenet@news.hub.org X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 To: pgsql-admin@postgresql.org X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200212/237 X-Sequence-Number: 6732 I wrote some days ago about the behaviour that I notice if I call a function cachable inside another not cachable, I was wrong ? 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. But seems that this behaviour happen only in stand alone query not if that query is executed inside another function. Ciao Gaetano