X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 0EA97534A9 for ; Tue, 19 Apr 2005 04:44:13 -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 85058-01 for ; Tue, 19 Apr 2005 07:44:04 +0000 (GMT) Received: from boutiquenumerique.com (boutiquenumerique.com [82.67.9.10]) by svr1.postgresql.org (Postfix) with ESMTP id D0F57533A9 for ; Tue, 19 Apr 2005 04:44:03 -0300 (ADT) Received: (qmail 6931 invoked from network); 19 Apr 2005 09:44:10 +0200 Received: from unknown (HELO localhost) (boutiquenumerique-lists@192.168.0.4) by boutiquenumerique.com with SMTP; 19 Apr 2005 09:44:10 +0200 To: "Bill Lawrence" , "Tom Lane" , "Rod Taylor" Cc: "Scott Marlowe" , pgsql-sql@postgresql.org Subject: Re: Getting the output of a function used in a where clause References: Message-ID: From: PFC Organization: =?iso-8859-15?Q?La_Boutique_Num=E9rique?= Content-Type: text/plain; format=flowed; delsp=yes; charset=iso-8859-15 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Date: Tue, 19 Apr 2005 09:44:01 +0200 In-Reply-To: User-Agent: Opera M2(BETA2)/8.0 (Linux, build 987) X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.002 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200504/277 X-Sequence-Number: 21170 > Thanks Tom and Rod. > > There are indeed several additional conditions on the "real" query which > prune the search space (I formulate a quick search box and filter on > Lat/Lon's within the box). Since my user interface limits the search to > a 30 > mile radius, there are at most 81 results (in New York city, far fewer, > for Why don't you use a GiST index which will index this bounding box search ?