]> git.ipfire.org Git - thirdparty/postgresql.git/commitdiff
Fix nbtree skip array transformation comments.
authorPeter Geoghegan <pg@bowt.ie>
Wed, 7 Jan 2026 17:53:05 +0000 (12:53 -0500)
committerPeter Geoghegan <pg@bowt.ie>
Wed, 7 Jan 2026 17:53:05 +0000 (12:53 -0500)
Fix comments that incorrectly described transformations performed by the
"Avoid extra index searches through preprocessing" mechanism introduced
by commit b3f1a13f.

Author: Yugo Nagata <nagata@sraoss.co.jp>
Reviewed-By: Chao Li <li.evan.chao@gmail.com>
Reviewed-By: Peter Geoghegan <pg@bowt.ie>
Discussion: https://postgr.es/m/20251230190145.c3c88c5eb0f88b136adda92f@sraoss.co.jp
Backpatch-through: 18

src/backend/access/nbtree/nbtpreprocesskeys.c

index bf38b71ba2d0398b425b9d320ab7870591c63841..d09384a813ade2ca2d6ced2b49bf9cd3a1e65237 100644 (file)
@@ -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,