Fix some minor errors in new PHJ code.

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

Commit: 6fcde24063047c1195d023dfa08309302987cdcf
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2018-01-03T17:53:49Z
Releases: 11.0
Fix some minor errors in new PHJ code.

Correct ExecParallelHashTuplePrealloc's estimate of whether the
space_allowed limit is exceeded.  Be more consistent about tuples that
are exactly HASH_CHUNK_THRESHOLD in size (they're "small", not "large").
Neither of these things explain the current buildfarm unhappiness, but
they're still bugs.

Thomas Munro, per gripe by me

Discussion: https://postgr.es/m/CAEepm=34PDuR69kfYVhmZPgMdy8pSA-MYbpesEN1SR+2oj3Y+w@mail.gmail.com

Files

PathChange+/−
src/backend/executor/nodeHash.c modified +4 −2

Discussion