mirror of
https://github.com/pgvector/pgvector.git
synced 2026-07-17 17:54:32 +08:00
@@ -186,9 +186,6 @@ hnswgettuple(IndexScanDesc scan, ScanDirection dir)
|
|||||||
Datum value = PointerGetDatum(hc->element->vec);
|
Datum value = PointerGetDatum(hc->element->vec);
|
||||||
bool isnull = false;
|
bool isnull = false;
|
||||||
|
|
||||||
if (scan->xs_itup)
|
|
||||||
pfree(scan->xs_itup);
|
|
||||||
|
|
||||||
scan->xs_itup = index_form_tuple(scan->xs_itupdesc, &value, &isnull);
|
scan->xs_itup = index_form_tuple(scan->xs_itupdesc, &value, &isnull);
|
||||||
scan->xs_itup->t_tid = *tid;
|
scan->xs_itup->t_tid = *tid;
|
||||||
}
|
}
|
||||||
@@ -233,9 +230,6 @@ hnswendscan(IndexScanDesc scan)
|
|||||||
if (BufferIsValid(so->buf))
|
if (BufferIsValid(so->buf))
|
||||||
ReleaseBuffer(so->buf);
|
ReleaseBuffer(so->buf);
|
||||||
|
|
||||||
if (scan->xs_itup)
|
|
||||||
pfree(scan->xs_itup);
|
|
||||||
|
|
||||||
MemoryContextDelete(so->tmpCtx);
|
MemoryContextDelete(so->tmpCtx);
|
||||||
|
|
||||||
pfree(so);
|
pfree(so);
|
||||||
|
|||||||
Reference in New Issue
Block a user