mirror of
https://github.com/pgvector/pgvector.git
synced 2026-06-06 14:01:31 +08:00
Improved cleanup for IVFFlat index scans [skip ci]
This commit is contained in:
@@ -170,6 +170,7 @@ GetScanItems(IndexScanDesc scan, Datum value)
|
||||
}
|
||||
}
|
||||
|
||||
ExecDropSingleTupleTableSlot(slot);
|
||||
FreeAccessStrategy(bas);
|
||||
|
||||
if (tuples < 100)
|
||||
@@ -372,7 +373,9 @@ ivfflatendscan(IndexScanDesc scan)
|
||||
IvfflatScanOpaque so = (IvfflatScanOpaque) scan->opaque;
|
||||
|
||||
pairingheap_free(so->listQueue);
|
||||
FreeTupleDesc(so->tupdesc);
|
||||
tuplesort_end(so->sortstate);
|
||||
ExecDropSingleTupleTableSlot(so->slot);
|
||||
|
||||
pfree(so);
|
||||
scan->opaque = NULL;
|
||||
|
||||
Reference in New Issue
Block a user