diff --git a/src/hnswutils.c b/src/hnswutils.c index 0c828ae..4b259fc 100644 --- a/src/hnswutils.c +++ b/src/hnswutils.c @@ -150,11 +150,16 @@ HnswOptionalProcInfo(Relation index, uint16 procnum) } /* - * Get vector type + * Get type */ HnswType HnswGetType(Relation index) { + Oid typid = TupleDescAttr(index->rd_att, 0)->atttypid; + + if (typid == BITOID || typid == VARBITOID) + return HNSW_TYPE_BIT; + return HNSW_TYPE_VECTOR; }