vBulletin Search Engine Optimization
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| Hello there I am playing with the postgres planner with some join queries. For example: explain select * from a,b where a.age=b.age and a.att1 > 10 and a.att1 < 20 and b. att2 >20 and b.att2 <40. etc.. postgres chooses to use a nested join when the selectivity of one table is small, which makes sense to me. However, I do not see how postgres decides when to use merge join and hash join. How does the planner decide when to use merge join VS hash join. Please advise. Thanks. -Tiff |