Improved check [skip ci]

This commit is contained in:
Andrew Kane
2023-10-22 11:15:00 -07:00
parent 0a3669a680
commit ff2bdfb3b4

View File

@@ -161,7 +161,7 @@ hnswvalidate(Oid opclassoid)
static bool
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));
}
/*