Teach hash_ok_operator() that record_eq is only sometimes hashable.
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 16 Jan 2022 21:39:26 +0000 (16:39 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 16 Jan 2022 21:39:26 +0000 (16:39 -0500)
commit6478896675660402171c97d6307e6e1519250025
tree1cc838e570e2c916ac8601609e6eb48f01f8b6d6
parentfe75517443b7c38f5251d007d06321655ce6c0b6
Teach hash_ok_operator() that record_eq is only sometimes hashable.

The need for this was foreseen long ago, but when record_eq
actually became hashable (in commit 01e658fa7), we missed updating
this spot.

Per bug #17363 from Elvis Pranskevichus.  Back-patch to v14 where
the faulty commit came in.

Discussion: https://postgr.es/m/17363-f6d42fd0d726be02@postgresql.org
src/backend/optimizer/plan/subselect.c
src/test/regress/expected/subselect.out
src/test/regress/sql/subselect.sql