Received: from pns.mm.eutelsat.org (pns.mm.eutelsat.org [194.214.173.227]) by postgresql.org (Postfix) with ESMTP id 8ACC647517F for ; Sat, 27 Apr 2002 13:13:22 -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 g3RHDHK27286; Sat, 27 Apr 2002 19:13:18 +0200 Received: from GMENDOLA2 (gmendola2.mm.eutelsat.org [194.214.173.26]) by nts-03.mm.eutelsat.org (8.9.3/8.8.7) with SMTP id TAA15513; Sat, 27 Apr 2002 19:11:16 +0200 Message-ID: <00d001c1ee0e$d314e7c0$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:13:17 +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/280 X-Sequence-Number: 4168 "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