Fix NULL handling in multi-batch Parallel Hash Left Join.

Thomas Munro <tmunro@postgresql.org>

Commit: 1ce4a807e25bcd726e34b8d3ba0338e9299f9a87
Author: Thomas Munro <tmunro@postgresql.org>
Date: 2018-11-02T22:05:35Z
Releases: 12.0
Fix NULL handling in multi-batch Parallel Hash Left Join.

NULL keys in left joins were skipped when building batch files.
Repair, by making the keep_nulls argument to ExecHashGetHashValue()
depend on whether this is a left outer join, as we do in other
paths.

Bug #15475.  Thinko in 1804284042e.  Back-patch to 11.

Reported-by: Paul Schaap
Diagnosed-by: Andrew Gierth
Dicussion: https://postgr.es/m/15475-11a7a783fed72a36%40postgresql.org

Files

PathChange+/−
src/backend/executor/nodeHashjoin.c modified +1 −1