Re: performace problem after VACUUM ANALYZE - Mailing list pgsql-performance

From Tom Lane
Subject Re: performace problem after VACUUM ANALYZE
Date
Msg-id 8000.1045242018@sss.pgh.pa.us
Whole thread Raw
In response to performace problem after VACUUM ANALYZE  (Scott Cain <cain@cshl.org>)
Responses Re: performace problem after VACUUM ANALYZE  (Scott Cain <cain@cshl.org>)
List pgsql-performance
Scott Cain <cain@cshl.org> writes:
> [ much stuff ]

Could we see EXPLAIN ANALYZE, not just EXPLAIN, output for all these
alternatives?  Your question boils down to "why is the planner
misestimating these queries" ... which is a difficult question to
answer when given only the estimates and not the reality.

A suggestion though is that you might need to raise the statistics
target on the indexed columns, so that ANALYZE will collect
finer-grained statistics.  (See ALTER TABLE ... SET STATISTICS.)
Try booting it up to 100 (from the default 10), re-analyze, and
then see if/how the plans change.

            regards, tom lane

pgsql-performance by date:

Previous
From: Scott Cain
Date:
Subject: performace problem after VACUUM ANALYZE
Next
From: Scott Cain
Date:
Subject: Re: performace problem after VACUUM ANALYZE