mirror of
https://github.com/postgres/postgres.git
synced 2025-06-07 11:02:12 +03:00
nbtree: consistently use minoff variable.
This was arguably an oversight in commit 29b64d1de7, which moved this code from nbtutils.c to its nbtsearch.c caller.
This commit is contained in:
parent
c1c09007e2
commit
18ea6b3d0d
@ -1810,8 +1810,7 @@ _bt_readpage(IndexScanDesc scan, ScanDirection dir, OffsetNumber offnum,
|
|||||||
*/
|
*/
|
||||||
if (scan->ignore_killed_tuples && ItemIdIsDead(iid))
|
if (scan->ignore_killed_tuples && ItemIdIsDead(iid))
|
||||||
{
|
{
|
||||||
Assert(offnum >= P_FIRSTDATAKEY(opaque));
|
if (offnum > minoff)
|
||||||
if (offnum > P_FIRSTDATAKEY(opaque))
|
|
||||||
{
|
{
|
||||||
offnum = OffsetNumberPrev(offnum);
|
offnum = OffsetNumberPrev(offnum);
|
||||||
continue;
|
continue;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user