]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Fix incorrect hash equality operator bug in Memoize
authorDavid Rowley <drowley@postgresql.org>
Mon, 8 Nov 2021 01:41:13 +0000 (14:41 +1300)
committerDavid Rowley <drowley@postgresql.org>
Mon, 8 Nov 2021 01:41:13 +0000 (14:41 +1300)
commit1f194ed6c26e67ce92437729fc46193cc6e913d2
tree2d7304b3c394ecee20d90afcc5cbea9baa3cebb2
parentbb003edbb7b1e8fb2ce488e2f047e5e1982b95fd
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
src/backend/optimizer/plan/initsplan.c