Skip to content

Commit da7d395

Browse files
committed
Improved cleanup for IVFFlat index scans [skip ci]
1 parent dadbbc3 commit da7d395

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/ivfscan.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,7 @@ GetScanItems(IndexScanDesc scan, Datum value)
170170
}
171171
}
172172

173+
ExecDropSingleTupleTableSlot(slot);
173174
FreeAccessStrategy(bas);
174175

175176
if (tuples < 100)
@@ -372,7 +373,9 @@ ivfflatendscan(IndexScanDesc scan)
372373
IvfflatScanOpaque so = (IvfflatScanOpaque) scan->opaque;
373374

374375
pairingheap_free(so->listQueue);
376+
FreeTupleDesc(so->tupdesc);
375377
tuplesort_end(so->sortstate);
378+
ExecDropSingleTupleTableSlot(so->slot);
376379

377380
pfree(so);
378381
scan->opaque = NULL;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy