diff --git a/src/ivfscan.c b/src/ivfscan.c index d67290b8..0b978ebe 100644 --- a/src/ivfscan.c +++ b/src/ivfscan.c @@ -429,6 +429,7 @@ ivfflatrescan(IndexScanDesc scan, ScanKey keys, int nkeys, ScanKey orderbys, int so->first = true; pairingheap_reset(so->listsHeap); + so->listsCount = 0; so->listsVisited = 0; if (so->normprocinfo != NULL && DatumGetPointer(so->value) != NULL)