Fix misleading comment for GetOperatorFromCompareType

David Rowley <drowley@postgresql.org>

Commit: e8d4e94a47ea0f02e180208ec7daf03bdd2f751e
Author: David Rowley <drowley@postgresql.org>
Date: 2026-01-06T02:16:14Z
Fix misleading comment for GetOperatorFromCompareType

The comment claimed *strat got set to InvalidStrategy when the function
lookup fails.  This isn't true; an ERROR is raised when that happens.

Author: Paul A Jungwirth <pj@illuminatedcomputing.com>
Reviewed-by: Neil Chen <carpenter.nail.cz@gmail.com>
Discussion: https://postgr.es/m/CA+renyXOrjLacP_nhqEQUf2W+ZCoY2q5kpQCfG05vQVYzr8b9w@mail.gmail.com
Backpatch-through: 18

Files

PathChange+/−
src/backend/commands/indexcmds.c modified +2 −2

Discussion