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

From: Thomas Munro <tmunro(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Fix NULL handling in multi-batch Parallel Hash Left Join.
Date: 2018-11-02 22:08:19
Message-ID: E1gIhc3-0006kA-Qv@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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

Branch
------
REL_11_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/fd6449aa38759cc35c32c1d5bf87c516ba6385c8

Modified Files
--------------
src/backend/executor/nodeHashjoin.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2018-11-02 22:54:21 pgsql: Yet further rethinking of build changes for macOS Mojave.
Previous Message Thomas Munro 2018-11-02 22:07:50 pgsql: Fix NULL handling in multi-batch Parallel Hash Left Join.