Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 5DFDF6325EF for ; Thu, 27 May 2010 18:28:58 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 99823-10 for ; Thu, 27 May 2010 21:28:51 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from gw.wicourts.gov (gwmta.wicourts.gov [165.219.244.99]) by mail.postgresql.org (Postfix) with ESMTP id DE7606325E1 for ; Thu, 27 May 2010 18:28:50 -0300 (ADT) Received: from Courts-MTA by gw.wicourts.gov with Novell_GroupWise; Thu, 27 May 2010 16:28:49 -0500 Message-Id: <4BFE9DC00200002500031BBC@gw.wicourts.gov> X-Mailer: Novell GroupWise Internet Agent 8.0.1 Date: Thu, 27 May 2010 16:28:48 -0500 From: "Kevin Grittner" To: "Craig James" , Subject: Re: Does FILTER in SEQSCAN short-circuit AND? References: <4BFEE08E.2040804@emolecules.com> In-Reply-To: <4BFEE08E.2040804@emolecules.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-4.21 tagged_above=-10 required=5 tests=BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201005/242 X-Sequence-Number: 38826 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 -Kevin