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 B91F35360E for ; Thu, 14 Apr 2005 15:58:26 -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 35029-01 for ; Thu, 14 Apr 2005 18:58:18 +0000 (GMT) Received: from sunsite.dcc.uchile.cl (sunsite.dcc.uchile.cl [192.80.24.2]) by svr1.postgresql.org (Postfix) with ESMTP id 891E5529D4 for ; Thu, 14 Apr 2005 15:58:16 -0300 (ADT) Received: from anakena.dcc.uchile.cl (anakena [192.80.24.6]) by sunsite.dcc.uchile.cl (8.12.11/8.12.11) with ESMTP id j3EIw9gH018728; Thu, 14 Apr 2005 14:58:09 -0400 (CLT) Received: by anakena.dcc.uchile.cl (Postfix, from userid 4151) id 43C0952B65; Thu, 14 Apr 2005 14:58:09 -0400 (CLT) Date: Thu, 14 Apr 2005 14:58:09 -0400 From: Alvaro Herrera To: Simon Riggs , pgsql-performance@postgresql.org Cc: elein Subject: Re: [Fwd: Re: Functionscan estimates] Message-ID: <20050414185809.GD28198@dcc.uchile.cl> References: <1113464198.16721.1725.camel@localhost.localdomain> <20050414173903.GY5278@varlena.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050414173903.GY5278@varlena.com> User-Agent: Mutt/1.5.8i X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.344 tagged_above=0 required=5 tests=AWL, DNS_FROM_RFC_ABUSE X-Spam-Level: X-Archive-Number: 200504/317 X-Sequence-Number: 11714 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)