X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 2E0CAD1B1A0 for ; Tue, 13 Jul 2004 03:25:08 -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 44313-05 for ; Tue, 13 Jul 2004 06:25:06 +0000 (GMT) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by svr1.postgresql.org (Postfix) with ESMTP id 5B16CD1B19B for ; Tue, 13 Jul 2004 03:24:53 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.11/8.12.11) with ESMTP id i6D6Evwg011801; Tue, 13 Jul 2004 02:14:58 -0400 (EDT) To: Chris Cheston Cc: pgsql-performance@postgresql.org Subject: Re: How to create an index for type timestamp column using rtree? In-reply-to: References: Comments: In-reply-to Chris Cheston message dated "Mon, 12 Jul 2004 22:51:27 -0700" Date: Tue, 13 Jul 2004 02:14:57 -0400 Message-ID: <11800.1089699297@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200407/70 X-Sequence-Number: 7461 Chris Cheston writes: > I'm storing some timestamps as integers (UTF) in a table and I want to > query by <= and >= for times between a certain period. btree can handle range queries nicely; why do you think you need an rtree? rtree is for 2-dimensional datums which a timestamp is not ... regards, tom lane