mirror of
https://github.com/pgvector/pgvector.git
synced 2026-07-05 12:10:55 +08:00
Added support for bit to IVFFlat
This commit is contained in:
@@ -73,6 +73,9 @@ IvfflatGetType(Relation index)
|
||||
Form_pg_type type;
|
||||
IvfflatType result;
|
||||
|
||||
if (typid == BITOID)
|
||||
return IVFFLAT_TYPE_BIT;
|
||||
|
||||
tuple = SearchSysCache1(TYPEOID, ObjectIdGetDatum(typid));
|
||||
if (!HeapTupleIsValid(tuple))
|
||||
elog(ERROR, "cache lookup failed for type %u", typid);
|
||||
|
||||
Reference in New Issue
Block a user