Fix an oversight in refactoring in 06b10f80ba.

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
This commit is contained in:
Alexander Korotkov 2024-03-22 15:25:53 +02:00
parent d20d8fbd3e
commit b670b93a66
1 changed files with 1 additions and 1 deletions

View File

@ -2498,7 +2498,7 @@ _bt_endpoint(IndexScanDesc scan, ScanDirection dir)
/*
* Now load data from the first page of the scan.
*/
if (!_bt_readpage(scan, dir, start, false))
if (!_bt_readpage(scan, dir, start, true))
{
/*
* There's no actually-matching data on this page. Try to advance to