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 4B3D49DCA6D for ; Fri, 17 Mar 2006 14:07:37 -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 12009-10 for ; Fri, 17 Mar 2006 14:07:36 -0400 (AST) X-Greylist: domain auto-whitelisted by SQLgrey- Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.203]) by postgresql.org (Postfix) with ESMTP id B51989DCA33 for ; Fri, 17 Mar 2006 14:07:34 -0400 (AST) Received: by zproxy.gmail.com with SMTP id 8so581648nzo for ; Fri, 17 Mar 2006 10:07:35 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Hp/sf6gLr2vg502oV07DesBhHhRujlJZVyylvoO+YVgJ97QLZWLfbOxjAv2oePVXnFWVk99zrTEUxckJg7GFe0UzUVgo2tjJ2GJk05TLwcMuzQERSXKyUkJ3+pN1g/596RZMtsmPawoTJbx/jxvZZXl4NTAgweIzcvqQP4diANE= Received: by 10.65.110.12 with SMTP id n12mr384275qbm; Fri, 17 Mar 2006 10:07:34 -0800 (PST) Received: by 10.65.135.10 with HTTP; Fri, 17 Mar 2006 10:07:34 -0800 (PST) Message-ID: Date: Fri, 17 Mar 2006 13:07:34 -0500 From: "Merlin Moncure" To: "Bruno Wolff III" , "Dan Harris" , "PostgreSQL Performance" Subject: Re: Help optimizing a slow index scan In-Reply-To: <20060317173827.GB15967@wolff.to> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <4419DB50.10404@drivefaster.net> <4419DC1C.9070806@drivefaster.net> <684362e10603161915x431c6b08t@mail.gmail.com> <441AD702.9020508@drivefaster.net> <20060317173827.GB15967@wolff.to> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.136 required=5 tests=[AWL=0.136] X-Spam-Score: 0.136 X-Spam-Level: X-Archive-Number: 200603/285 X-Sequence-Number: 17722 On 3/17/06, Bruno Wolff III wrote: > Have you looked at using the Earth Distance contrib module? If a spherica= l > model of the earth is suitable for your application, then it may work for= you > and might be easier than trying to create Gist indexes yourself. earth distance =3D great stuff. If the maximum error is known then you can just pad the distance and filter the result on the client if exact precision is needed. Merlin