Re: Timestamp indicies not being used! - Mailing list pgsql-general

From Sam Mason
Subject Re: Timestamp indicies not being used!
Date
Msg-id 20090719142925.GG5407@samason.me.uk
Whole thread Raw
In response to Re: Timestamp indicies not being used!  (Andreas Kretschmer <akretschmer@spamfence.net>)
List pgsql-general
On Sun, Jul 19, 2009 at 02:56:04PM +0200, Andreas Kretschmer wrote:
> Sam Mason <sam@samason.me.uk> wrote:
> > 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...

Yes, and with decent stats (as you pointed out) it'll know better when
to do this.  Even with better stats it may not help much as there could
be cross-column correlations that are causing PG's estimates to be off.

--
  Sam  http://samason.me.uk/

pgsql-general by date:

Previous
From: Sim Zacks
Date:
Subject: Re: table/view/function access counts
Next
From: Tom Lane
Date:
Subject: Re: Timestamp indicies not being used!