On 10/29/10 1:54 PM, Ozer, Pam wrote:
> " -> Index Scan using dealergroupgeocache_i01 on
> dealergroupgeocache (cost=0.00..5719.56 rows=9055 width=10) (actual
> time=0.015..87.689 rows=163491 loops=1)"
This appears to be your problem here.
a) when was dealergroupgeocache last ANALYZED?
b) try increasing the stats_target on dealergroupid and regionid, to say
500 and re-analyzing.
--
-- Josh Berkus
PostgreSQL Experts Inc.
http://www.pgexperts.com