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 15CC5538C9 for ; Wed, 27 Apr 2005 01:12:46 -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 15613-10 for ; Wed, 27 Apr 2005 04:12:36 +0000 (GMT) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by svr1.postgresql.org (Postfix) with ESMTP id F02CD5388A for ; Wed, 27 Apr 2005 01:12:35 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.1/8.13.1) with ESMTP id j3R4CWRk017646; Wed, 27 Apr 2005 00:12:33 -0400 (EDT) To: tjo@acm.org Cc: pgsql-sql@postgresql.org Subject: Re: several questions about R-tree index In-reply-to: <3366.209.223.166.104.1114559525.squirrel@gnova.com> References: <3366.209.223.166.104.1114559525.squirrel@gnova.com> Comments: In-reply-to "TJ O'Donnell" message dated "Tue, 26 Apr 2005 16:52:05 -0700" Date: Wed, 27 Apr 2005 00:12:32 -0400 Message-ID: <17645.1114575152@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.006 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200504/387 X-Sequence-Number: 21280 "TJ O'Donnell" writes: > Shouldn't the ~ (contains) operator be included also? > Isn't ~ the commutator of @ ? Yeah, it looks like the documentation is in error: regression=# select amopopr::regoperator,amopstrategy from pg_amop where amopclaid in regression-# (select oid from pg_opclass where opcamid = 402); amopopr | amopstrategy ---------------------+-------------- <<(box,box) | 1 &<(box,box) | 2 &&(box,box) | 3 &>(box,box) | 4 >>(box,box) | 5 ~=(box,box) | 6 ~(box,box) | 7 @(box,box) | 8 <<(polygon,polygon) | 1 &<(polygon,polygon) | 2 &&(polygon,polygon) | 3 &>(polygon,polygon) | 4 >>(polygon,polygon) | 5 ~=(polygon,polygon) | 6 ~(polygon,polygon) | 7 @(polygon,polygon) | 8 (16 rows) Of course, the thing that leaps out here is that there are only two built-in opclasses for rtree. Not exactly confidence building. > I am considering using R-tree's for other-than-geometric purposes. I concur with Andrew's suggestion to consider GIST. GIST has its own issues, but at least there are people looking at it/using it/working on it. R-tree doesn't seem to have any user community that really cares. regards, tom lane