Skip to content

Commit 63e1098

Browse files
committed
Improve slightly misleading internal error message
The error message was talking about RowCompareType but was actually checking strategy numbers. While those are closely related, it is better to be accurate. Discussion: https://www.postgresql.org/message-id/flat/[email protected]
1 parent 9d7aa40 commit 63e1098

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/backend/access/nbtree/nbtutils.c

+1-2
Original file line numberDiff line numberDiff line change
@@ -4033,8 +4033,7 @@ _bt_check_rowcompare(ScanKey skey, IndexTuple tuple, int tupnatts,
40334033
result = (cmpresult > 0);
40344034
break;
40354035
default:
4036-
elog(ERROR, "unrecognized RowCompareType: %d",
4037-
(int) subkey->sk_strategy);
4036+
elog(ERROR, "unexpected strategy number %d", subkey->sk_strategy);
40384037
result = 0; /* keep compiler quiet */
40394038
break;
40404039
}

0 commit comments

Comments
 (0)