Re: Slow query: bitmap scan troubles
postgresql@foo.me.uk
From: <postgresql@foo.me.uk>
To: "'postgres performance list'" <pgsql-performance@postgresql.org>
Date: 2012-12-06T12:56:26Z
Lists: pgsql-hackers, pgsql-performance
> I also wonder if increasing (say x10) of default_statistics_target or just doing ALTER TABLE SET STATISTICS for particular tables will help. > It will make planned to produce more precise estimations. Do not forget ANALYZE afer changing it. Thanks Sergey, I will try this too. I think the bother here is that this statistics are pretty good (we do analyse regularly and default_statistics_target is already 1000), but once I start filtering the two tables the correlations alter quite a bit. I don't think there is that much that can be done about that :) - Phil
Commits
-
Tweak genericcostestimate's fudge factor for index size.
- bf01e34b556f 9.3.0 cited
-
Tweak index costing for problems with partial indexes.
- 21a39de5809c 9.2.0 cited