pgsql: Fix misleading comment for GetOperatorFromCompareType

From: David Rowley <drowley(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Fix misleading comment for GetOperatorFromCompareType
Date: 2026-01-06 02:16:37
Message-ID: E1vcwce-004kpH-1w@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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(at)illuminatedcomputing(dot)com>
Reviewed-by: Neil Chen <carpenter(dot)nail(dot)cz(at)gmail(dot)com>
Discussion: https://postgr.es/m/CA+renyXOrjLacP_nhqEQUf2W+ZCoY2q5kpQCfG05vQVYzr8b9w@mail.gmail.com
Backpatch-through: 18

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/e8d4e94a47ea0f02e180208ec7daf03bdd2f751e

Modified Files
--------------
src/backend/commands/indexcmds.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message David Rowley 2026-01-06 02:17:20 pgsql: Fix misleading comment for GetOperatorFromCompareType
Previous Message Fujii Masao 2026-01-06 02:02:29 pgsql: doc: Fix outdated doc in pg_rewind.