Fix incorrect hash equality operator bug in Memoize
David Rowley <drowley@postgresql.org>
Fix incorrect hash equality operator bug in Memoize In v14, because we don't have a field in RestrictInfo to cache both the left and right type's hash equality operator, we just restrict the scope of Memoize to only when the left and right types of a RestrictInfo are the same. In master we add another field to RestrictInfo and cache both hash equality operators. Reported-by: Jaime Casanova Author: David Rowley Discussion: https://postgr.es/m/20210929185544.GB24346%40ahch-to Backpatch-through: 14
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/nodes/copyfuncs.c | modified | +2 −1 |
| src/backend/nodes/outfuncs.c | modified | +2 −1 |
| src/backend/optimizer/path/joinpath.c | modified | +23 −8 |
| src/backend/optimizer/plan/initsplan.c | modified | +20 −8 |
| src/backend/optimizer/util/restrictinfo.c | modified | +4 −2 |
| src/include/nodes/pathnodes.h | modified | +3 −2 |
Discussion
- jsonb crash 23 messages · 2021-09-29 → 2021-11-22