pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Gaetano Mendola <gmendola@mm.eutelsat.org>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-admin@postgresql.org
Subject: Re: strange behaviour
Date: Sat, 27 Apr 2002 19:13:17 +0200
Message-ID: <00d001c1ee0e$d314e7c0$d5a9fea9@GMENDOLA2> (raw)
References: <00c301c1edd1$b9cc5b50$d5a9fea9@GMENDOLA2>
	<20705.1019920639@sss.pgh.pa.us>

"Tom Lane" <tgl@sss.pgh.pa.us> wrote:
> "Gaetano Mendola" <mendola@bigfoot.com> 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




view thread (4+ messages)  latest in thread

Message-ID: <00d001c1ee0e$d314e7c0$d5a9fea9@GMENDOLA2>
Permalink:  ../00d001c1ee0e$d314e7c0$d5a9fea9@GMENDOLA2/
Also on:    postgresql.org/message-id/00d001c1ee0e$d314e7c0$d5a9fea9@GMENDOLA2

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: gmendola@mm.eutelsat.org, tgl@sss.pgh.pa.us
  Subject: Re: strange behaviour
  In-Reply-To: <00d001c1ee0e$d314e7c0$d5a9fea9@GMENDOLA2>
  References: <00c301c1edd1$b9cc5b50$d5a9fea9@GMENDOLA2> <20705.1019920639@sss.pgh.pa.us> <00d001c1ee0e$d314e7c0$d5a9fea9@GMENDOLA2>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox