mirror of
https://github.com/pgvector/pgvector.git
synced 2026-07-09 22:30:58 +08:00
Improved check [skip ci]
This commit is contained in:
@@ -161,7 +161,7 @@ hnswvalidate(Oid opclassoid)
|
|||||||
static bool
|
static bool
|
||||||
hnswcanreturn(Relation indexRelation, int attno)
|
hnswcanreturn(Relation indexRelation, int attno)
|
||||||
{
|
{
|
||||||
return attno == 1 && HnswOptionalProcInfo(indexRelation, HNSW_NORM_PROC) == NULL;
|
return attno == 1 && !OidIsValid(index_getprocid(indexRelation, 1, HNSW_NORM_PROC));
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
Reference in New Issue
Block a user