Fix some nasty coredump bugs in hashjoin. This code was just

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

Commit: 9f82f9e45902d05e221798e82c22ac95d7a5c3e1
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 1999-05-06T00:30:47Z
Releases: 7.1.1
Fix some nasty coredump bugs in hashjoin.  This code was just
about certain to fail anytime it decided the relation to be hashed was
too big to fit in memory --- the code for 'batching' a series of hashjoins
had multiple errors.  I've fixed the easier problems.  A remaining big
problem is that you can get 'hashtable out of memory' if the code's
guesstimate about how much overflow space it will need turns out wrong.
That will require much more extensive revisions to fix, so I'm committing
these fixes now before I start on that problem.

Files

PathChange+/−
src/backend/executor/nodeHash.c modified +127 −118
src/backend/executor/nodeHashjoin.c modified +4 −4
src/include/executor/hashjoin.h modified +11 −8