Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 853F6632B0E for ; Thu, 27 May 2010 18:44:31 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 34674-04 for ; Thu, 27 May 2010 21:44:22 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail-pz0-f183.google.com (mail-pz0-f183.google.com [209.85.222.183]) by mail.postgresql.org (Postfix) with ESMTP id 9BB236322A7 for ; Thu, 27 May 2010 18:44:23 -0300 (ADT) Received: by pzk13 with SMTP id 13so344011pzk.13 for ; Thu, 27 May 2010 14:44:21 -0700 (PDT) Received: by 10.142.3.5 with SMTP id 5mr7188837wfc.169.1274996661894; Thu, 27 May 2010 14:44:21 -0700 (PDT) Received: from Craig-Jamess-MacBook-Pro.local (wsip-70-167-124-126.sd.sd.cox.net [70.167.124.126]) by mx.google.com with ESMTPS id y15sm925545wfd.10.2010.05.27.14.44.20 (version=SSLv3 cipher=RC4-MD5); Thu, 27 May 2010 14:44:21 -0700 (PDT) Message-ID: <4BFEE7B3.7080608@emolecules.com> Date: Thu, 27 May 2010 14:44:19 -0700 From: Craig James User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.1.9) Gecko/20100317 Thunderbird/3.0.4 MIME-Version: 1.0 To: Kevin Grittner CC: pgsql-performance@postgresql.org Subject: Re: Does FILTER in SEQSCAN short-circuit AND? References: <4BFEE08E.2040804@emolecules.com> <4BFE9DC00200002500031BBC@gw.wicourts.gov> In-Reply-To: <4BFE9DC00200002500031BBC@gw.wicourts.gov> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-10 required=5 tests=BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001 X-Spam-Level: X-Archive-Number: 201005/243 X-Sequence-Number: 38827 On 5/27/10 2:28 PM, Kevin Grittner wrote: > Craig James wrote: > >> It would be nice if Postgres had a way to assign a cost to every >> function. > > The COST clause of CREATE FUNCTION doesn't do what you want? > > http://www.postgresql.org/docs/8.4/interactive/sql-createfunction.html Cool ... I must have missed it when this feature was added. Nice! Craig