Re: Timestamp indicies not being used!

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Andreas Kretschmer <akretschmer(at)spamfence(dot)net>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Timestamp indicies not being used!
Date: 2009-07-19 16:20:30
Message-ID: 627.1248020430@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Andreas Kretschmer <akretschmer(at)spamfence(dot)net> writes:
> Sam Mason <sam(at)samason(dot)me(dot)uk> wrote:
>> Based on your query, I think you want a multi-column index---probably on
>> (id,zulu_timestamp).
>>
>> The problem with just having an index on either column is that it's
>> difficult to combine them and PG hence just thinks that it will be

> Since 8.1 PG can do an bitmap index scan using both indexes...

... which produces an unordered result, so it's pretty useless for this
problem. I concur with Sam's suggestion.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message James B. Byrne 2009-07-19 17:20:27 PG handling of date expressions
Previous Message Sam Mason 2009-07-19 14:29:25 Re: Timestamp indicies not being used!