Re: How to create an index for type timestamp column using

From: Christopher Kings-Lynne <chriskl(at)familyhealth(dot)com(dot)au>
To: Chris Cheston <ccheston(at)gmail(dot)com>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: How to create an index for type timestamp column using
Date: 2004-07-13 06:33:48
Message-ID: 40F3824C.8090607@familyhealth.com.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

> I'm storing some timestamps as integers (UTF) in a table and I want to
> query by <= and >= for times between a certain period. The table has
> gotten quite large and is now very slow in querying.
>
> I think it's time to create an index for the timestamp column.

Uh, yeah.

> I tried using an rtree (for <= and >= optimization):

Bad idea.

> Do I have to create an rtree type for my timestamp integer column?

Why do you want an rtree index? They're for multidimensional polygonal
data and stuff. Just create a normal index...

Chris

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Chris Cheston 2004-07-13 07:56:02 Re: How to create an index for type timestamp column using rtree?
Previous Message Tom Lane 2004-07-13 06:14:57 Re: How to create an index for type timestamp column using rtree?