Skip to content

Commit 184e7a7

Browse files
committed
Revise nodeMergejoin in light of example provided by Guillaume Smet.
When one side of the join has a NULL, we don't want to uselessly try to match it against every remaining tuple of the other side. While at it, rewrite the comparison machinery to avoid multiple evaluations of the left and right input expressions and to use a btree comparator where available, instead of double operator calls. Also revise the state machine to eliminate redundant comparisons and hopefully make it more readable too.
1 parent 2979334 commit 184e7a7

File tree

4 files changed

+658
-514
lines changed

4 files changed

+658
-514
lines changed

0 commit comments

Comments
 (0)