indexing datetime

From: Sergei Barbarash <sgt(at)www(dot)dot(dot)ru>
To: pgsql-sql(at)postgreSQL(dot)org
Subject: indexing datetime
Date: 1998-09-03 15:11:11
Message-ID: 199809031511.TAA03736@www.dot.ru
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

I have a very large and fast-growing table with a datetime field. Most of my
queries are based on date comparison as well. Like:

select * from table where time > 'Aug 1 0:0:0 1998' and time < 'Sep 1 0:0:0
1998';

How can I index the table to optimize my queries? Or maybe datetime is a bad
choice for this?

-- Sergei

Browse pgsql-sql by date

  From Date Subject
Next Message Fidelis Assis 1998-09-03 17:54:25 Resp: RE: Resp: [SQL] Concatenation in selects
Previous Message James Olin Oden 1998-09-03 14:16:33 Re: [SQL] Concatenation in selects