X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 9D7429DC84D for ; Thu, 15 Dec 2005 22:00:45 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 30091-07 for ; Thu, 15 Dec 2005 22:00:49 -0400 (AST) X-Greylist: domain auto-whitelisted by SQLgrey- Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.206]) by postgresql.org (Postfix) with ESMTP id B487F9DC820 for ; Thu, 15 Dec 2005 22:00:43 -0400 (AST) Received: by wproxy.gmail.com with SMTP id 57so497218wri for ; Thu, 15 Dec 2005 18:00:47 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=JePW29c16uwXJeNrd+g2tWm2jd3M3sDp5YKVu9lpcAjzo1YwcfTzG+DUtpZ7MZgrs+LJqaQDeTzpL7Du7X2fGuBaoGkrPKJepl/9cfS2yQvwVTML80q1UvPj9+qxzu5bfycKCRZ1SjCCqq5JtuDlahVt+L+xbcC2k4H2tjunnhg= Received: by 10.54.77.16 with SMTP id z16mr2021427wra; Thu, 15 Dec 2005 18:00:44 -0800 (PST) Received: by 10.54.98.6 with HTTP; Thu, 15 Dec 2005 18:00:44 -0800 (PST) Message-ID: Date: Thu, 15 Dec 2005 21:00:44 -0500 From: Jaime Casanova To: Christopher Kings-Lynne Subject: Re: Overriding the optimizer Cc: "Craig A. James" , pgsql-performance@postgresql.org In-Reply-To: <43A21D74.8030002@familyhealth.com.au> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <200512141603.52583.blargity@gmail.com> <7484.1134600423@sss.pgh.pa.us> <1134629567.14248.27.camel@firebolt> <200512150148.16125.blargity@gmail.com> <1134644526.14248.60.camel@firebolt> <43A1C40D.8040006@paradise.net.nz> <43A1F6DB.3080805@modgraph-usa.com> <43A21D74.8030002@familyhealth.com.au> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.094 required=5 tests=[AWL=0.094] X-Spam-Score: 0.094 X-Spam-Level: X-Archive-Number: 200512/364 X-Sequence-Number: 16185 On 12/15/05, Christopher Kings-Lynne wrote: > > select * from my_table where row_num >=3D 50000 and row_num < 10= 0000 > > and myfunc(foo, bar); > > You just create an index on myfunc(foo, bar) > > Chris > only if myfunc(foo, bar) is immutable... -- regards, Jaime Casanova (DBA: DataBase Aniquilator ;)