If we expect a hash join to be performed in multiple batches, suppress
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 26 Mar 2009 17:15:35 +0000 (17:15 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 26 Mar 2009 17:15:35 +0000 (17:15 +0000)
commitb9ec140c6301d7f6ae29ce370109b87343547034
tree034b14bd29e59488c0ac87e61336932fd2558bcf
parentb052bf6dc221b16c89c9b8248d2113ca366fe34e
If we expect a hash join to be performed in multiple batches, suppress
"physical tlist" optimization on the outer relation (ie, force a projection
step to occur in its scan).  This avoids storing useless column values when
the outer relation's tuples are written to temporary batch files.

Modified version of a patch by Michael Henderson and Ramon Lawrence.
src/backend/nodes/outfuncs.c
src/backend/optimizer/path/costsize.c
src/backend/optimizer/plan/createplan.c
src/backend/optimizer/util/pathnode.c
src/include/nodes/relation.h