pgsql: Teach hash_ok_operator() that record_eq is only sometimes hashab

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Teach hash_ok_operator() that record_eq is only sometimes hashab
Date: 2022-01-16 21:39:36
Message-ID: E1n9DFQ-000556-Vn@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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

Branch
------
REL_14_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/17da9d4c28297fd699cbbda969a9f64c4c09c665

Modified Files
--------------
src/backend/optimizer/plan/subselect.c | 6 +++---
src/test/regress/expected/subselect.out | 23 +++++++++++++++++++++++
src/test/regress/sql/subselect.sql | 10 ++++++++++
3 files changed, 36 insertions(+), 3 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Michael Paquier 2022-01-17 01:19:01 pgsql: Introduce log_destination=jsonlog
Previous Message Tom Lane 2022-01-16 19:59:34 pgsql: Fix psql's tab-completion of enum label values.