On 02/18/2013 15:39, Bert wrote:
Hello,
Thanks the nice people on irc my problem is fixed.
I changed the following settings in the postgres.conf file:
default_statistics_target = 5000 -> and I analyzed the tables after the change of course -> now I only got 2 plans anymore, in stead of 3
default_statistics_target = 5000 as a default is *way* too high. Such high values should only be set on a per-column basis ...
cpu_tuple_cost = 0.1 -> by setting this value the seq scans were stopped, and the better index_only scan / bitmap index scan were used for this query.
Thank you Robe and Mabe_ for helping me with this issue!
s/Mabe_/Mage_ :-)
--
No trees were killed in the creation of this message.
However, many electrons were terribly inconvenienced.