Remove cost_hashjoin's very ancient hack to discourage (once, entirely forbid)
hash joins with the estimated-larger relation on the inside. There are
several cases where doing that makes perfect sense, and in cases where it
doesn't, the regular cost computation really ought to be able to figure that
out. Make some marginal tweaks in said computation to try to get results
approximating reality a bit better. Per an example from Shane Ambler.
Also, fix an oversight in the original patch to add seq_page_cost: the costs
of spilling a hash join to disk should be scaled by seq_page_cost.
costsize.c (r22.214.171.124 -> r126.96.36.199)
pgsql-committers by date
|Next:||From: Tom Lane||Date: 2007-01-08 16:47:30|
|Subject: pgsql: Tweak joinlist creation to avoid generating useless one-element |
|Previous:||From: Tom Lane||Date: 2007-01-08 16:09:22|
|Subject: pgsql: Remove cost_hashjoin's very ancient hack to discourage (once, |