Better solution to integer overflow problem in hash batch-number
Tom Lane <tgl@sss.pgh.pa.us>
Better solution to integer overflow problem in hash batch-number computation: reduce the bucket number mod nbatch. This changes the association between original bucket numbers and batches, but that doesn't matter. Minor other cleanups in hashjoin code to help centralize decisions.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/executor/nodeHash.c | modified | +31 −41 |
| src/backend/executor/nodeHashjoin.c | modified | +4 −29 |
| src/backend/optimizer/path/costsize.c | modified | +23 −20 |
| src/include/executor/nodeHash.h | modified | +2 −1 |