Received: from pns.mm.eutelsat.org (pns.mm.eutelsat.org [194.214.173.227]) by postgresql.org (Postfix) with ESMTP id 1B6D547517F for ; Sat, 27 Apr 2002 13:15:59 -0400 (EDT) Received: from nts-03.mm.eutelsat.org (localhost [127.0.0.1]) by pns.mm.eutelsat.org (8.11.6/linuxconf) with ESMTP id g3RHFpC27311; Sat, 27 Apr 2002 19:15:51 +0200 Received: from dell-01.mm.eutelsat.org (IDENT:root@dell-01.mm.eutelsat.org [194.214.173.17]) by nts-03.mm.eutelsat.org (8.9.3/8.8.7) with ESMTP id TAA15527; Sat, 27 Apr 2002 19:13:52 +0200 Received: from GMENDOLA2 (gmendola2.mm.eutelsat.org [194.214.173.26]) by dell-01.mm.eutelsat.org (8.11.2/8.8.7) with SMTP id g3RHFoR30467; Sat, 27 Apr 2002 19:15:50 +0200 Message-ID: <00d901c1ee0f$2fac84c0$d5a9fea9@GMENDOLA2> From: "Gaetano Mendola" To: "Tom Lane" Cc: References: <00c301c1edd1$b9cc5b50$d5a9fea9@GMENDOLA2> <20705.1019920639@sss.pgh.pa.us> Subject: Re: strange behaviour Date: Sat, 27 Apr 2002 19:15:52 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-Archive-Number: 200204/274 X-Sequence-Number: 4162 "Tom Lane" wrote: > "Gaetano Mendola" writes: > > It is normal that inside sp_foo() the sp_now() is not anymore called ? > > You *did* mark it cachable. timeofday() is pretty much the classic > example of functions that shouldn't be marked cachable. Yes I know, but is not so clear why in a select like: select sp_now(), sp_foo(); the first call to sp_now() is not cached and inside sp_foo() yes, this behaviour was more clear for me if both sp_now() was cached. Ciao Gaetano