From 6c99c715ddb338e169c2ffd2a4cf754fa510cccb Mon Sep 17 00:00:00 2001 From: Peter Geoghegan Date: Wed, 7 Jan 2026 12:53:05 -0500 Subject: [PATCH] Fix nbtree skip array transformation comments. Fix comments that incorrectly described transformations performed by the "Avoid extra index searches through preprocessing" mechanism introduced by commit b3f1a13f. Author: Yugo Nagata Reviewed-By: Chao Li Reviewed-By: Peter Geoghegan Discussion: https://postgr.es/m/20251230190145.c3c88c5eb0f88b136adda92f@sraoss.co.jp Backpatch-through: 18 --- src/backend/access/nbtree/nbtpreprocesskeys.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/backend/access/nbtree/nbtpreprocesskeys.c b/src/backend/access/nbtree/nbtpreprocesskeys.c index bf38b71ba2d..d09384a813a 100644 --- a/src/backend/access/nbtree/nbtpreprocesskeys.c +++ b/src/backend/access/nbtree/nbtpreprocesskeys.c @@ -1404,7 +1404,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, @@ -1462,7 +1462,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, -- 2.47.3