From: Christopher Kings-Lynne <chriskl@familyhealth.com.au>
To: Chris Cheston <ccheston@gmail.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: How to create an index for type timestamp column using
Date: Tue, 13 Jul 2004 14:33:48 +0800
Message-ID: <40F3824C.8090607@familyhealth.com.au> (raw)
In-Reply-To: <e071108e040712225174cda991@mail.gmail.com>
References: <e071108e040712225174cda991@mail.gmail.com>
> 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-performance@postgresql.org
Cc: chriskl@familyhealth.com.au, ccheston@gmail.com
Subject: Re: How to create an index for type timestamp column using
In-Reply-To: <40F3824C.8090607@familyhealth.com.au>
References: <e071108e040712225174cda991@mail.gmail.com> <40F3824C.8090607@familyhealth.com.au>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox