Re: Why does a simple query not use an obvious index? - Mailing list pgsql-performance

From Greg Stark
Subject Re: Why does a simple query not use an obvious index?
Date
Msg-id 87k6vgiqge.fsf@stark.xeocode.com
Whole thread Raw
In response to Re: Why does a simple query not use an obvious index?  (Guy Thornley <guy@esphion.com>)
List pgsql-performance
Guy Thornley <guy@esphion.com> writes:

>             "stats__ends_at" btree (stats__ends_at("at", resolution, "values"))

Postgres 7.4 doesn't have any stats on functional indexes. So it's back to
just guessing at the selectivity of this. 8.0 does gather stats for functional
indexes so it should be better off.

--
greg

pgsql-performance by date:

Previous
From: Tom Lane
Date:
Subject: Re: Why does a simple query not use an obvious index?
Next
From: "Steinar H. Gunderson"
Date:
Subject: Re: Why does a simple query not use an obvious index?