Hi, The attached patch is a trivial change to fix the comments on _bt_skiparray_strat_increment() and _bt_skiparray_strat_decrement() so that they are consistent with the comments on _bt_skiparray_strat_adjust(). At least the comment on _bt_skiparray_strat_decrement() containts an obvious typo, since it mentions converting the high_compare key instead of the low_compare key.
Regards, Yugo Nagata -- Yugo Nagata <[email protected]>
diff --git a/src/backend/access/nbtree/nbtpreprocesskeys.c b/src/backend/access/nbtree/nbtpreprocesskeys.c index 5b251c5058d..d00d7ac4181 100644 --- a/src/backend/access/nbtree/nbtpreprocesskeys.c +++ b/src/backend/access/nbtree/nbtpreprocesskeys.c @@ -1406,7 +1406,7 @@ _bt_skiparray_strat_adjust(IndexScanDesc scan, ScanKey arraysk, } /* - * Convert skip array's > low_compare key into a >= key + * Convert skip array's < high_compare key into a <= key */ static void _bt_skiparray_strat_decrement(IndexScanDesc scan, ScanKey arraysk, @@ -1464,7 +1464,7 @@ _bt_skiparray_strat_decrement(IndexScanDesc scan, ScanKey arraysk, } /* - * Convert skip array's < low_compare key into a <= key + * Convert skip array's > low_compare key into a >= key */ static void _bt_skiparray_strat_increment(IndexScanDesc scan, ScanKey arraysk,
