[HACKERS] costing of hash join

2014-01-03 Thread Jeff Janes
I'm trying to figure out why hash joins seem to be systematically underused in my hands. In the case I am immediately looking at it prefers a merge join with both inputs getting seq scanned and sorted, despite the hash join being actually 2 to 3 times faster, where inputs and intermediate working

Re: [HACKERS] costing of hash join

2014-01-03 Thread Tom Lane
Jeff Janes jeff.ja...@gmail.com writes: I'm trying to figure out why hash joins seem to be systematically underused in my hands. In the case I am immediately looking at it prefers a merge join with both inputs getting seq scanned and sorted, despite the hash join being actually 2 to 3 times