From bd409f0c6a6aeaf7ee980830dac1aa59ba9c8587 Mon Sep 17 00:00:00 2001 From: Andrew Kane Date: Mon, 22 Apr 2024 19:22:09 -0700 Subject: [PATCH] Moved HnswGetType call [skip ci] --- src/hnswinsert.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/hnswinsert.c b/src/hnswinsert.c index 5d6e061..50181ea 100644 --- a/src/hnswinsert.c +++ b/src/hnswinsert.c @@ -614,13 +614,12 @@ HnswInsertTuple(Relation index, Datum *values, bool *isnull, ItemPointer heap_ti Datum value; FmgrInfo *normprocinfo; Oid collation = index->rd_indcollation[0]; - HnswType type = HnswGetType(index); /* Detoast once for all calls */ value = PointerGetDatum(PG_DETOAST_DATUM(values[0])); /* Check value */ - HnswCheckValue(value, type); + HnswCheckValue(value, HnswGetType(index)); /* Normalize if needed */ normprocinfo = HnswOptionalProcInfo(index, HNSW_NORM_PROC);