Renamed functions [skip ci]

This commit is contained in:
Andrew Kane
2024-04-24 15:00:36 -07:00
parent 3eef1ff5c2
commit 7ac0ac5a7f
4 changed files with 55 additions and 55 deletions

View File

@@ -1276,30 +1276,30 @@ HnswFindElementNeighbors(char *base, HnswElement element, HnswElement entryPoint
}
}
PGDLLEXPORT PG_FUNCTION_INFO_V1(halfvec_hnsw_max_dims);
PGDLLEXPORT PG_FUNCTION_INFO_V1(hnsw_halfvec_max_dims);
Datum
halfvec_hnsw_max_dims(PG_FUNCTION_ARGS)
hnsw_halfvec_max_dims(PG_FUNCTION_ARGS)
{
PG_RETURN_INT32(HNSW_MAX_DIM * 2);
};
PGDLLEXPORT PG_FUNCTION_INFO_V1(bit_hnsw_max_dims);
PGDLLEXPORT PG_FUNCTION_INFO_V1(hnsw_bit_max_dims);
Datum
bit_hnsw_max_dims(PG_FUNCTION_ARGS)
hnsw_bit_max_dims(PG_FUNCTION_ARGS)
{
PG_RETURN_INT32(HNSW_MAX_DIM * 32);
};
PGDLLEXPORT PG_FUNCTION_INFO_V1(sparsevec_hnsw_max_dims);
PGDLLEXPORT PG_FUNCTION_INFO_V1(hnsw_sparsevec_max_dims);
Datum
sparsevec_hnsw_max_dims(PG_FUNCTION_ARGS)
hnsw_sparsevec_max_dims(PG_FUNCTION_ARGS)
{
PG_RETURN_INT32(SPARSEVEC_MAX_DIM);
};
PGDLLEXPORT PG_FUNCTION_INFO_V1(sparsevec_hnsw_check_value);
PGDLLEXPORT PG_FUNCTION_INFO_V1(hnsw_sparsevec_check_value);
Datum
sparsevec_hnsw_check_value(PG_FUNCTION_ARGS)
hnsw_sparsevec_check_value(PG_FUNCTION_ARGS)
{
SparseVector *vec = PG_GETARG_SPARSEVEC_P(0);

View File

@@ -246,16 +246,16 @@ IvfflatUpdateList(Relation index, ListInfo listInfo,
}
}
PGDLLEXPORT PG_FUNCTION_INFO_V1(halfvec_ivfflat_support);
PGDLLEXPORT PG_FUNCTION_INFO_V1(ivfflat_halfvec_support);
Datum
halfvec_ivfflat_support(PG_FUNCTION_ARGS)
ivfflat_halfvec_support(PG_FUNCTION_ARGS)
{
PG_RETURN_INT32(IVFFLAT_TYPE_HALFVEC);
};
PGDLLEXPORT PG_FUNCTION_INFO_V1(bit_ivfflat_support);
PGDLLEXPORT PG_FUNCTION_INFO_V1(ivfflat_bit_support);
Datum
bit_ivfflat_support(PG_FUNCTION_ARGS)
ivfflat_bit_support(PG_FUNCTION_ARGS)
{
Oid typid = PG_GETARG_OID(0);