Accidental assignment instead of compare in GetOperatorFromCompareType?

Jacob Brazeal <jacob.brazeal@gmail.com>

From: Jacob Brazeal <jacob.brazeal@gmail.com>
To: pgsql-hackers <pgsql-hackers@postgresql.org>, Peter Eisentraut <peter@eisentraut.org>
Date: 2025-03-03T05:05:47Z
Lists: pgsql-hackers

Attachments

Hi all,

It looks like commit 630f9a43cece93cb4a5c243b30e34abce6a89514 omitted an
equals sign in an ereport() in GetOperatorFromCompareType, giving the line:

cmptype = COMPARE_EQ ? errmsg("could not identify an equality operator for
type %s", format_type_be(opcintype)) :

I think the impact is just that we'd never see the error messages for
the COMPARE_OVERLAP and COMPARE_CONTAINED_BY cases logged.

Regards,
Jacob

Commits

  1. Fix accidental use of = instead of ==

  2. Change gist stratnum function to use CompareType