The original patch to avoid building a hash join's hashtable when the
authorTom Lane <[email protected]>
Sun, 25 Sep 2005 19:37:35 +0000 (19:37 +0000)
committerTom Lane <[email protected]>
Sun, 25 Sep 2005 19:37:35 +0000 (19:37 +0000)
commit2d7480d0f2580b28fd202b6f43e3a548270a0842
tree8d67d278c50fcb70d01210d9c58414e0977b68db
parent9a0719722217de013c32c44a16c4f936c9a0445a
The original patch to avoid building a hash join's hashtable when the
outer relation is empty did not work, per test case from Patrick Welche.
It tried to use nodeHashjoin.c's high-level mechanisms for fetching an
outer-relation tuple, but that code expected the hash table to be filled
already.  As patched, the code failed in corner cases such as having no
outer-relation tuples for the first hash batch.  Revert and rewrite.
src/backend/executor/nodeHash.c
src/backend/executor/nodeHashjoin.c
src/include/nodes/execnodes.h