pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jim C. Nasby <jnasby@pervasive.com>
To: Craig A. James <cjames@modgraph-usa.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: function not called if part of aggregate
Date: Sun, 11 Jun 2006 12:48:37 -0500
Message-ID: <20060611174837.GF34196@pervasive.com> (raw)
In-Reply-To: <448C505C.2080504@modgraph-usa.com>
References: <448C505C.2080504@modgraph-usa.com>

On Sun, Jun 11, 2006 at 10:18:20AM -0700, Craig A. James wrote:
> This doesn't seem right to me -- how can the optimizer possibly know that a 
> function doesn't have a side effect, as in my case?  Functions could do all 
> sorts of things, such as logging activity, filling in other tables, etc, 
> etc.
> 
> Am I missing something here?

Read about function stability in the docs.
-- 
Jim C. Nasby, Sr. Engineering Consultant      jnasby@pervasive.com
Pervasive Software      http://pervasive.com    work: 512-231-6117
vcard: http://jim.nasby.net/pervasive.vcf       cell: 512-569-9461



view thread (7+ messages)  latest in thread

Message-ID: <20060611174837.GF34196@pervasive.com>
Permalink:  ../20060611174837.GF34196@pervasive.com/
Also on:    postgresql.org/message-id/20060611174837.GF34196@pervasive.com

 · 

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: jnasby@pervasive.com, cjames@modgraph-usa.com
  Subject: Re: function not called if part of aggregate
  In-Reply-To: <20060611174837.GF34196@pervasive.com>

* 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