mirror of
https://github.com/pgvector/pgvector.git
synced 2026-07-13 08:06:54 +08:00
Updated HnswLoadElementFromTuple to be less vector-specific
This commit is contained in:
@@ -448,12 +448,7 @@ HnswLoadElementFromTuple(HnswElement element, HnswElementTuple etup, bool loadHe
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (loadVec)
|
if (loadVec)
|
||||||
{
|
element->value = datumCopy(PointerGetDatum(&etup->data), false, -1);
|
||||||
Vector *vec = palloc(VARSIZE_ANY(&etup->data));
|
|
||||||
|
|
||||||
memcpy(vec, &etup->data, VARSIZE_ANY(&etup->data));
|
|
||||||
element->value = PointerGetDatum(vec);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
Reference in New Issue
Block a user