pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Mark Liberman <mliberman@mixedsignals.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: Stable function being evaluated more than once in a single query
Date: Wed, 11 Jan 2006 23:33:23 -0500
Message-ID: <935.1137040403@sss.pgh.pa.us> (raw)
In-Reply-To: <200601111641.20627.mliberman@mixedsignals.com>
References: <200601111641.20627.mliberman@mixedsignals.com>

Mark Liberman <mliberman@mixedsignals.com> writes:
> I've got a set-returning function,  defined as STABLE, that I reference twice
> within a single query, yet appears to be evaluated via two seperate function 
> scans.

There is no guarantee, express or implied, that this won't be the case.

(Seems like we just discussed this a couple days ago...)

			regards, tom lane



view thread (6+ messages)  latest in thread

Message-ID: <935.1137040403@sss.pgh.pa.us>
Permalink:  ../935.1137040403@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/935.1137040403@sss.pgh.pa.us

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: tgl@sss.pgh.pa.us, mliberman@mixedsignals.com
  Subject: Re: Stable function being evaluated more than once in a single query
  In-Reply-To: <935.1137040403@sss.pgh.pa.us>

* 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