On 12/10/2013 01:45, BladeOfLight16 wrote:
Indeed it does perform very much better. With the modified query the plan and the execution time are excellent.
However, my previous question remains - in the original query plan, there are two hash tables being populated using seqscan + filter. During each seqscan, over 95 million records were wastefully read. I think that this could have been dramatically improved by using an index scan. Am I mistaken? Is it a optimisation that could be implemented but has not been implemented yet? Is it a bug?
Thanks,
Jesse