Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit b670b93

Browse files
committed
Fix an oversight in refactoring in 06b10f8.
It was against intended skipping prechecking keys optimization in the first page of range queries to not influence point queries performance. Reported-by: Anton Melnikov Discussion: https://postgr.es/m/30cd7524-b9f1-4cf8-9c4a-223eb2e34441%40postgrespro.ru Author: Pavel Borisov
1 parent d20d8fb commit b670b93

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/access/nbtree/nbtsearch.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -2498,7 +2498,7 @@ _bt_endpoint(IndexScanDesc scan, ScanDirection dir)
24982498
/*
24992499
* Now load data from the first page of the scan.
25002500
*/
2501-
if (!_bt_readpage(scan, dir, start, false))
2501+
if (!_bt_readpage(scan, dir, start, true))
25022502
{
25032503
/*
25042504
* There's no actually-matching data on this page. Try to advance to

0 commit comments

Comments
 (0)