1
0
mirror of https://github.com/postgres/postgres.git synced 2025-06-13 07:41:39 +03:00

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.
This commit is contained in:
Tom Lane
2005-05-13 21:20:16 +00:00
parent 2979334d47
commit 184e7a73a5
4 changed files with 679 additions and 535 deletions

File diff suppressed because it is too large Load Diff