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)
commit17da9d4c28297fd699cbbda969a9f64c4c09c665
tree377a335283dc6020153257f991980015c9acd308
parentd91d4338e05486f943361260b9d4ad54421d3b44
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