Tweak hash join code to use an additional heuristic for deciding whether

Tom Lane <tgl@sss.pgh.pa.us>

Commit: c4279b45fd6031173adc8ae533a1f81942cfb027
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2005-11-28T23:46:25Z
Releases: 8.1.1
Tweak hash join code to use an additional heuristic for deciding whether
it's worth probing the outer relation for emptiness before building the
hash table.  To wit, if we're rescanning a join previously performed,
remember whether we found it nonempty the previous time, and don't bother
with the probe if it was nonempty.  This buys back the performance lost
in examples like Mario Weilguni's.

Files

PathChange+/−
src/backend/executor/nodeHashjoin.c modified +39 −4
src/include/nodes/execnodes.h modified +3 −1