Re-added check for iterative scans [skip ci]

This commit is contained in:
Andrew Kane
2026-06-10 11:58:19 -07:00
parent 1dd39f66de
commit 7db3d67b2d

View File

@@ -334,6 +334,9 @@ hnswgetbatch(IndexScanDesc scan, IndexScanBatch priorbatch, ScanDirection dir)
nitems++;
}
if (nitems == 0)
break;
MemoryContextSwitchTo(oldCtx);
batch->firstItem = 0;