mirror of
https://github.com/postgres/postgres.git
synced 2025-09-03 15:22:11 +03:00
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/E72EAA49-354D-4C2E-8EB9-255197F55330@enterprisedb.com
This commit is contained in:
@@ -4033,8 +4033,7 @@ _bt_check_rowcompare(ScanKey skey, IndexTuple tuple, int tupnatts,
|
||||
result = (cmpresult > 0);
|
||||
break;
|
||||
default:
|
||||
elog(ERROR, "unrecognized RowCompareType: %d",
|
||||
(int) subkey->sk_strategy);
|
||||
elog(ERROR, "unexpected strategy number %d", subkey->sk_strategy);
|
||||
result = 0; /* keep compiler quiet */
|
||||
break;
|
||||
}
|
||||
|
Reference in New Issue
Block a user