X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 7802F5365E for ; Thu, 14 Apr 2005 17:54:20 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 29285-09 for ; Thu, 14 Apr 2005 20:54:13 +0000 (GMT) Received: from a.mail.sonic.net (a.mail.sonic.net [64.142.16.245]) by svr1.postgresql.org (Postfix) with ESMTP id 45AED53617 for ; Thu, 14 Apr 2005 17:54:12 -0300 (ADT) Received: from cookie.varlena.com (64-142-36-103.dsl.static.sonic.net [64.142.36.103]) by a.mail.sonic.net (8.13.3/8.13.3) with ESMTP id j3EKs6aS032236; Thu, 14 Apr 2005 13:54:07 -0700 Received: by cookie.varlena.com (Postfix, from userid 1000) id A7115CCE; Thu, 14 Apr 2005 13:51:43 -0700 (PDT) Date: Thu, 14 Apr 2005 13:51:43 -0700 To: Alvaro Herrera Cc: Simon Riggs , pgsql-performance@postgresql.org, elein Subject: Re: [Fwd: Re: Functionscan estimates] Message-ID: <20050414205143.GB5278@varlena.com> Mail-Followup-To: Alvaro Herrera , Simon Riggs , pgsql-performance@postgresql.org References: <1113464198.16721.1725.camel@localhost.localdomain> <20050414173903.GY5278@varlena.com> <20050414185809.GD28198@dcc.uchile.cl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050414185809.GD28198@dcc.uchile.cl> User-Agent: Mutt/1.5.6+20040907i From: elein@varlena.com (elein) X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.057 tagged_above=0 required=5 tests=AWL, FORGED_RCVD_HELO X-Spam-Level: X-Archive-Number: 200504/443 X-Sequence-Number: 11840 Hmmm. My brain is being jostled and I'm confusing illustra-postgres, informix-postgres and postgresql. Some things had functions and some things had constants and I do not remember which products had what combination. But probably how they are in postgresql, post hellerstein, is how I am remembering. I can find out for sure, given a little time, by querying old contacts. It would be best if I had a clear question to ask, though. --elein On Thu, Apr 14, 2005 at 02:58:09PM -0400, Alvaro Herrera wrote: > On Thu, Apr 14, 2005 at 10:39:03AM -0700, elein wrote: > > > All functions could have a cost associated with them, set by the writer of > > the function in order for the planner to reorder function calls. > > The stonebraker airplane level example was: > > select ... from ... where f(id) = 3 and expensive_image_function(img) > > The idea, of course is to weight the expensive function so it was > > pushed to the end of the execution. > > So there was only a constant cost associated with the function? No > estimator function, for example? > > -- > Alvaro Herrera () > "If you have nothing to say, maybe you need just the right tool to help you > not say it." (New York Times, about Microsoft PowerPoint) >