Optimize multi-batch hash joins when the outer relation has a nonuniform

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

Commit: 596efd27edce20bba706f50de99a0f15bcc2a567
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2009-03-21T00:04:40Z
Releases: 8.4.0
Optimize multi-batch hash joins when the outer relation has a nonuniform
distribution, by creating a special fast path for the (first few) most common
values of the outer relation.  Tuples having hashvalues matching the MCVs
are effectively forced to be in the first batch, so that we never write
them out to the batch temp files.

Bryce Cutt and Ramon Lawrence, with some editorialization by me.

Files